Skip to content

Commit

Permalink
Revert "Fixed #22645: Allow apps with no models module to still have …
Browse files Browse the repository at this point in the history
…migrations"

This reverts commit a4737bf.
  • Loading branch information
andrewgodwin committed May 20, 2014
1 parent 03900a0 commit 12c7279
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django/db/migrations/loader.py
@@ -1,4 +1,3 @@

from __future__ import unicode_literals

from importlib import import_module
Expand Down Expand Up @@ -63,6 +62,8 @@ def load_disk(self):
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
Expand Down

0 comments on commit 12c7279

Please sign in to comment.