mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fix squashed migration loading ordering issue
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user