We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df1b1d7 commit 088f57bCopy full SHA for 088f57b
migration_fixer/utils.py
@@ -22,10 +22,9 @@ def _decode_message(output: bytes, encoding: str) -> str:
22
23
def _update_migration(conflict_path: Path, app_label: str, seen: List[str]) -> None:
24
"""Modify the migration file."""
25
- replacement = "('{app_label}', '{prev_migration}'),".format(
26
- app_label=app_label,
27
- prev_migration=seen[-1],
28
- )
+ prev_migration = seen[-1]
+
+ replacement = f'("{app_label}", "{prev_migration}"),'
29
30
replace_regex = re.compile(
31
MIGRATION_REGEX.format(app_label=app_label),
0 commit comments