Browse files

Fix squashed migration loading ordering issue

  • Loading branch information...
1 parent 0c46ca8 commit db4527e3c0486c46356e3d625931369e8b3bec19 @andrewgodwin andrewgodwin committed Nov 27, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/db/migrations/loader.py
View
2 django/db/migrations/loader.py
@@ -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

0 comments on commit db4527e

Please sign in to comment.