mirror of
https://github.com/django/django.git
synced 2025-09-15 06:55:32 +00:00
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:
parent
ec020cab7e
commit
bfcc686d22
11 changed files with 34 additions and 67 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue