mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Sorted conflicting migrations by names.
This commit is contained in:
committed by
Mariusz Felisiak
parent
52a0a03671
commit
04e4f80c1f
@@ -317,7 +317,7 @@ class MigrationLoader:
|
||||
if app_label in seen_apps:
|
||||
conflicting_apps.add(app_label)
|
||||
seen_apps.setdefault(app_label, set()).add(migration_name)
|
||||
return {app_label: seen_apps[app_label] for app_label in conflicting_apps}
|
||||
return {app_label: sorted(seen_apps[app_label]) for app_label in conflicting_apps}
|
||||
|
||||
def project_state(self, nodes=None, at_end=True):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user