1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #24919 -- Allowed disabling of migrations on a per app basis

This commit is contained in:
Markus Holtermann
2015-09-12 10:23:10 +10:00
parent ec704371e3
commit a3c01b0dd8
4 changed files with 38 additions and 0 deletions

View File

@@ -66,6 +66,9 @@ class MigrationLoader(object):
for app_config in apps.get_app_configs():
# Get the migrations module directory
module_name = self.migrations_module(app_config.label)
if module_name is None:
self.unmigrated_apps.add(app_config.label)
continue
was_loaded = module_name in sys.modules
try:
module = import_module(module_name)