diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-23 22:21:23 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-23 22:21:23 +0100 |
| commit | 137a3d7c77e235e6752b00fe9901a700b68fcef2 (patch) | |
| tree | 140a2f3c2300e3a28bf338e2bcea1d185d01f40f | |
| parent | e32095616c50bef9b06dc8637a99584ba947bae5 (diff) | |
Avoided loading repeatedly the same models module.
| -rw-r--r-- | django/apps/cache.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/apps/cache.py b/django/apps/cache.py index bd412f1192..3a95ea1306 100644 --- a/django/apps/cache.py +++ b/django/apps/cache.py @@ -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) |
