Merge pull request #44 from saintlyzero/dev
append new line in cp_models
This commit is contained in:
commit
1e56a70f21
@ -166,7 +166,7 @@ class Migrate:
|
|||||||
ret = re.sub(pattern, rf"\2{cls.diff_app}\4\5", content)
|
ret = re.sub(pattern, rf"\2{cls.diff_app}\4\5", content)
|
||||||
mode = "w" if i == 0 else "a"
|
mode = "w" if i == 0 else "a"
|
||||||
with open(old_model_file, mode, encoding="utf-8") as f:
|
with open(old_model_file, mode, encoding="utf-8") as f:
|
||||||
f.write(ret)
|
f.write(f"{ret}\n")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _get_migrate_config(cls, config: dict, app: str, location: str):
|
def _get_migrate_config(cls, config: dict, app: str, location: str):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user