mirror of
https://github.com/django/django.git
synced 2025-10-26 23:26:08 +00:00
Fixed #26150 -- Sorted app_labels in migrate command output
This commit is contained in:
@@ -122,12 +122,12 @@ class Command(BaseCommand):
|
||||
if run_syncdb:
|
||||
self.stdout.write(
|
||||
self.style.MIGRATE_LABEL(" Synchronize unmigrated apps: ") +
|
||||
(", ".join(executor.loader.unmigrated_apps))
|
||||
(", ".join(sorted(executor.loader.unmigrated_apps)))
|
||||
)
|
||||
if target_app_labels_only:
|
||||
self.stdout.write(
|
||||
self.style.MIGRATE_LABEL(" Apply all migrations: ") +
|
||||
(", ".join(set(a for a, n in targets)) or "(none)")
|
||||
(", ".join(sorted(set(a for a, n in targets))) or "(none)")
|
||||
)
|
||||
else:
|
||||
if targets[0][1] is None:
|
||||
|
||||
Reference in New Issue
Block a user