diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/migrations/loader.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/migrations/loader.py b/django/db/migrations/loader.py index add2907ca8..fccf7d3205 100644 --- a/django/db/migrations/loader.py +++ b/django/db/migrations/loader.py @@ -77,9 +77,11 @@ class MigrationLoader(object): else: # PY3 will happily import empty dirs as namespaces. if not hasattr(module, '__file__'): + self.unmigrated_apps.add(app_config.label) continue # Module is not a package (e.g. migrations.py). if not hasattr(module, '__path__'): + self.unmigrated_apps.add(app_config.label) continue # Force a reload if it's already loaded (tests need this) if was_loaded: |
