Skip to content
Browse files

Fix squashed migration loading ordering issue

  • Loading branch information...
1 parent 0c46ca8 commit db4527e3c0486c46356e3d625931369e8b3bec19 @andrewgodwin andrewgodwin committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/db/migrations/
2 django/db/migrations/
@@ -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[key] = migration

0 comments on commit db4527e

Please sign in to comment.
Something went wrong with that request. Please try again.