Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix squashed migration loading ordering issue

  • Loading branch information...
commit db4527e3c0486c46356e3d625931369e8b3bec19 1 parent 0c46ca8
Andrew Godwin andrewgodwin authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/db/migrations/loader.py
2  django/db/migrations/loader.py
View
@@ -171,6 +171,8 @@ def build_graph(self):
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.