Kaydet (Commit) b4bdd526 authored tarafından Tim Graham's avatar Tim Graham

Fixed #23366 -- Fixed a crash with the migrate --list command.

üst 46068d85
...@@ -41,7 +41,7 @@ class Command(BaseCommand): ...@@ -41,7 +41,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 ...@@ -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`).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment