diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-08 13:38:09 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-08 14:52:19 -0500 |
| commit | 9033003d97d29f7754b0840333f6f362c0cd31f7 (patch) | |
| tree | 3826709ec5c064b5cefb848ed328b0d11d190786 /django/apps | |
| parent | 540ca563dea624823e0b363f98302a78294836ad (diff) | |
Added check_apps_ready() to Apps.get_containing_app_config()
Diffstat (limited to 'django/apps')
| -rw-r--r-- | django/apps/registry.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/django/apps/registry.py b/django/apps/registry.py index c64106cd6f..e75bb99cfe 100644 --- a/django/apps/registry.py +++ b/django/apps/registry.py @@ -227,9 +227,7 @@ class Apps(object): Returns the app config for the inner application in case of nesting. Returns None if the object isn't in any registered app config. """ - # In Django 1.7 and 1.8, it's allowed to call this method at import - # time, even while the registry is being populated. In Django 1.9 and - # later, that should be forbidden with `self.check_apps_ready()`. + self.check_apps_ready() candidates = [] for app_config in self.app_configs.values(): if object_name.startswith(app_config.name): |
