diff options
| author | Tim Graham <timograham@gmail.com> | 2014-12-31 17:26:15 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-31 17:27:43 -0500 |
| commit | f461bc02cbfa7c04748e4b2392586fa3835330b1 (patch) | |
| tree | 6a70266d9d6791e6a72d610806c7a39db25fa0f4 | |
| parent | 8de2a44064ca11749579a5887f59821fa35e1fdc (diff) | |
[1.7.x] Fixed #23366 -- Fixed a crash with the migrate --list command.
Backport of b4bdd5262b18644456d12a00d475adf9897a9255 from master
| -rw-r--r-- | django/core/management/commands/migrate.py | 2 | ||||
| -rw-r--r-- | docs/releases/1.7.2.txt | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/django/core/management/commands/migrate.py b/django/core/management/commands/migrate.py index 24cb33ca47..ce65ac7cff 100644 --- a/django/core/management/commands/migrate.py +++ b/django/core/management/commands/migrate.py @@ -305,7 +305,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`). |
