Avoided loading repeatedly the same models module.

This commit is contained in:
Aymeric Augustin 2013-12-23 22:21:23 +01:00
parent e32095616c
commit 137a3d7c77
1 changed files with 3 additions and 0 deletions

View File

@ -113,6 +113,9 @@ class AppCache(object):
for app_config in self.app_configs.values():
if app_config.models is not None:
continue
try:
all_models = self.all_models[app_config.label]
app_config.import_models(all_models)