Removed the only_with_models_module argument of get_model[s].

Now that the refactorings are complete, it isn't particularly useful any
more, nor very well named. Let's keep the API as simple as possible.

Fixed #21689.
This commit is contained in:
Aymeric Augustin 2013-12-30 23:53:54 +01:00
parent ec020cab7e
commit bfcc686d22
11 changed files with 34 additions and 67 deletions

View file

@ -59,7 +59,9 @@ class MigrationLoader(object):
self.disk_migrations = {}
self.unmigrated_apps = set()
self.migrated_apps = set()
for app_config in apps.get_app_configs(only_with_models_module=True):
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