summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-12-31 17:26:15 -0500
committerTim Graham <timograham@gmail.com>2014-12-31 17:26:15 -0500
commitb4bdd5262b18644456d12a00d475adf9897a9255 (patch)
tree15cb24cd4a34f147de093f010f46f3467fd19273
parent46068d850d8debd3611ed6499d48b9907bf07ef6 (diff)
Fixed #23366 -- Fixed a crash with the migrate --list command.
-rw-r--r--django/core/management/commands/showmigrations.py2
-rw-r--r--docs/releases/1.7.2.txt3
2 files changed, 4 insertions, 1 deletions
diff --git a/django/core/management/commands/showmigrations.py b/django/core/management/commands/showmigrations.py
index 9ed9e1d052..b6ef6a2ece 100644
--- a/django/core/management/commands/showmigrations.py
+++ b/django/core/management/commands/showmigrations.py
@@ -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:
diff --git a/docs/releases/1.7.2.txt b/docs/releases/1.7.2.txt
index 1070946d83..3b614ed7ab 100644
--- a/docs/releases/1.7.2.txt
+++ b/docs/releases/1.7.2.txt
@@ -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`).