summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2014-05-20 13:19:17 +0100
committerAndrew Godwin <andrew@aeracode.org>2014-05-20 13:19:17 +0100
commita4737bf6ae36a5f1cb29f2232f6deeff084fabff (patch)
tree27d6946c510c6cfa8e912efd93c2804d9865560f
parentb8c480a12b16e625dd1229db6b48cd6074a22507 (diff)
Fixed #22645: Allow apps with no models module to still have migrations
-rw-r--r--django/db/migrations/loader.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/db/migrations/loader.py b/django/db/migrations/loader.py
index 661f74ff97..30a1485244 100644
--- a/django/db/migrations/loader.py
+++ b/django/db/migrations/loader.py
@@ -1,3 +1,4 @@
+
from __future__ import unicode_literals
from importlib import import_module
@@ -62,8 +63,6 @@ class MigrationLoader(object):
self.unmigrated_apps = set()
self.migrated_apps = set()
for app_config in apps.get_app_configs():
- if app_config.models_module is None:
- continue
# Get the migrations module directory
module_name = self.migrations_module(app_config.label)
was_loaded = module_name in sys.modules