Loading django/apps/cache.py +2 −3 Original line number Diff line number Diff line Loading @@ -114,7 +114,6 @@ class BaseAppCache(object): try: models_module = import_module('%s.%s' % (app_name, MODELS_MODULE_NAME)) except ImportError: self.nesting_level -= 1 # If the app doesn't have a models module, we can just swallow the # ImportError and return no models for this app. if not module_has_submodule(app_module, MODELS_MODULE_NAME): Loading @@ -132,7 +131,7 @@ class BaseAppCache(object): return else: raise finally: self.nesting_level -= 1 app_config = AppConfig( Loading Loading
django/apps/cache.py +2 −3 Original line number Diff line number Diff line Loading @@ -114,7 +114,6 @@ class BaseAppCache(object): try: models_module = import_module('%s.%s' % (app_name, MODELS_MODULE_NAME)) except ImportError: self.nesting_level -= 1 # If the app doesn't have a models module, we can just swallow the # ImportError and return no models for this app. if not module_has_submodule(app_module, MODELS_MODULE_NAME): Loading @@ -132,7 +131,7 @@ class BaseAppCache(object): return else: raise finally: self.nesting_level -= 1 app_config = AppConfig( Loading