diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2016-09-30 21:08:35 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-10-28 18:42:29 -0400 |
| commit | efcb7e1ebf2b852a442d00a31634438359eb4039 (patch) | |
| tree | cce88cc9cb2093fca4fe9a764bcce803d2be7d81 /django/apps/registry.py | |
| parent | 20be1918e77414837178d6bf1657068c8306d50c (diff) | |
Modified readiness check in AppConfig.get_model(s).
It was inconsistent with the equivalent check in Apps.get_model(s)
because I made incorrect assumptions when I wrote that code and
needlessly complicated readiness checks.
This is a backwards-incompatible change.
Diffstat (limited to 'django/apps/registry.py')
| -rw-r--r-- | django/apps/registry.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/apps/registry.py b/django/apps/registry.py index 8a45830ccf..91d6d5ccef 100644 --- a/django/apps/registry.py +++ b/django/apps/registry.py @@ -89,6 +89,7 @@ class Apps(object): "duplicates: %s" % app_config.label) self.app_configs[app_config.label] = app_config + app_config.apps = self # Check for duplicate app names. counts = Counter( |
