diff options
| author | Tim Graham <timograham@gmail.com> | 2013-08-05 13:34:35 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-08-05 13:34:35 -0400 |
| commit | 04489c7dbf8f69de84ca272a0a1710e7b6067e9d (patch) | |
| tree | 161a1ef94b70e5922c55aed5811b2e65ad3287e9 /django | |
| parent | 75c87e2d38b181163a61ea99f2a17273274a3a2b (diff) | |
Fixed #17667 -- Prevented app loading from skipping nonexistent apps after the first try
Thanks ea2100@ for the report and akaariai for the patch.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/loading.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/loading.py b/django/db/models/loading.py index f858f25c1d..6819134ae0 100644 --- a/django/db/models/loading.py +++ b/django/db/models/loading.py @@ -105,9 +105,9 @@ class AppCache(object): Loads the app with the provided fully qualified name, and returns the model module. """ + app_module = import_module(app_name) self.handled.add(app_name) self.nesting_level += 1 - app_module = import_module(app_name) try: models = import_module('%s.%s' % (app_name, MODELS_MODULE_NAME)) except ImportError: |
