Commit 137a3d7c authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Avoided loading repeatedly the same models module.

parent e3209561
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)