[1.7.x] Fixed #23366 -- Fixed a crash with the migrate --list command.
Backport of b4bdd5262b18644456d12a00d475adf9897a9255 from master
This commit is contained in:
parent
8de2a44064
commit
f461bc02cb
@ -305,7 +305,7 @@ class Command(BaseCommand):
|
|||||||
some named apps.
|
some named apps.
|
||||||
"""
|
"""
|
||||||
# Load migrations from disk/DB
|
# Load migrations from disk/DB
|
||||||
loader = MigrationLoader(connection)
|
loader = MigrationLoader(connection, ignore_no_migrations=True)
|
||||||
graph = loader.graph
|
graph = loader.graph
|
||||||
# If we were passed a list of apps, validate it
|
# If we were passed a list of apps, validate it
|
||||||
if app_names:
|
if app_names:
|
||||||
|
@ -189,3 +189,6 @@ Bugfixes
|
|||||||
|
|
||||||
* Fixed crash when ``ValidationError`` is initialized with a ``ValidationError``
|
* Fixed crash when ``ValidationError`` is initialized with a ``ValidationError``
|
||||||
that is initialized with a dictionary (:ticket:`24008`).
|
that is initialized with a dictionary (:ticket:`24008`).
|
||||||
|
|
||||||
|
* Prevented a crash on apps without migrations when running ``migrate --list``
|
||||||
|
(:ticket:`23366`).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user