Fix bug in windows.

This commit is contained in:
long2ice 2020-06-24 15:17:30 +08:00
parent 6be6d55e5b
commit 0d23297f46
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,11 @@ ChangeLog
========= =========
0.2 0.2
=== ===
0.2.1
-----
- Fix bug in windows.
0.2.0 0.2.0
----- -----
- Update model file find method. - Update model file find method.

View File

@ -172,7 +172,7 @@ class Migrate:
""" """
temp_config = deepcopy(config) temp_config = deepcopy(config)
path = os.path.join(location, app, cls.old_models) path = os.path.join(location, app, cls.old_models)
path = path.replace("/", ".").lstrip(".") path = path.replace(os.sep, ".").lstrip(".")
temp_config["apps"][cls.diff_app] = { temp_config["apps"][cls.diff_app] = {
"models": [path], "models": [path],
"default_connection": config.get("apps").get(app).get("default_connection", "default"), "default_connection": config.get("apps").get(app).get("default_connection", "default"),