mirror of
https://github.com/Hopiu/django.git
synced 2026-05-05 06:04:45 +00:00
Fix squashed migration loading ordering issue
This commit is contained in:
parent
0c46ca83e8
commit
db4527e3c0
1 changed files with 2 additions and 0 deletions
|
|
@ -171,6 +171,8 @@ class MigrationLoader(object):
|
|||
# the usage pattern here is to delete things after a while.
|
||||
del normal[replaced]
|
||||
for child_key in reverse_dependencies.get(replaced, set()):
|
||||
if child_key in migration.replaces:
|
||||
continue
|
||||
normal[child_key].dependencies.remove(replaced)
|
||||
normal[child_key].dependencies.append(key)
|
||||
normal[key] = migration
|
||||
|
|
|
|||
Loading…
Reference in a new issue