Skip to content

Commit

Permalink
Avoided loading repeatedly the same models module.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Dec 23, 2013
1 parent e320956 commit 137a3d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django/apps/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def populate_models(self):

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)
Expand Down

0 comments on commit 137a3d7

Please sign in to comment.