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

This commit is contained in:
Tim Graham 2014-12-31 17:26:15 -05:00
parent 46068d850d
commit b4bdd5262b
2 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class Command(BaseCommand):
some named apps.
"""
# Load migrations from disk/DB
loader = MigrationLoader(connection)
loader = MigrationLoader(connection, ignore_no_migrations=True)
graph = loader.graph
# If we were passed a list of apps, validate it
if app_names:

View File

@ -189,3 +189,6 @@ Bugfixes
* Fixed crash when ``ValidationError`` is initialized with a ``ValidationError``
that is initialized with a dictionary (:ticket:`24008`).
* Prevented a crash on apps without migrations when running ``migrate --list``
(:ticket:`23366`).