0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Revert "Fixed #22645: Allow apps with no models module to still have migrations"

This reverts commit a4737bf6ae.
This commit is contained in:
Andrew Godwin 2014-05-20 16:53:21 +01:00
parent 03900a02d5
commit 12c72796c3

View File

@ -1,4 +1,3 @@
from __future__ import unicode_literals
from importlib import import_module
@ -63,6 +62,8 @@ 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