mirror of
https://github.com/django/django.git
synced 2025-03-31 19:46:42 +00:00
Avoided loading repeatedly the same models module.
This commit is contained in:
parent
e32095616c
commit
137a3d7c77
@ -113,6 +113,9 @@ class AppCache(object):
|
|||||||
|
|
||||||
for app_config in self.app_configs.values():
|
for app_config in self.app_configs.values():
|
||||||
|
|
||||||
|
if app_config.models is not None:
|
||||||
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
all_models = self.all_models[app_config.label]
|
all_models = self.all_models[app_config.label]
|
||||||
app_config.import_models(all_models)
|
app_config.import_models(all_models)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user