diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-24 12:25:17 +0100 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-24 12:25:17 +0100 |
commit | 1716b7ce5a02b2a77188dfea2d41e25dfa58821c (patch) | |
tree | f3422c0d6725f45756a3b9deb32406d319b8a72e /django/db/utils.py | |
parent | e9e522a8e7455900a775678e5d6bc518a289b8d1 (diff) | |
download | django-1716b7ce5a02b2a77188dfea2d41e25dfa58821c.tar.gz |
Renamed AppCache to Apps.
Also renamed app_cache to apps and "app cache" to "app registry".
Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
Diffstat (limited to 'django/db/utils.py')
-rw-r--r-- | django/db/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/utils.py b/django/db/utils.py index 702b1b4ebc..85eabb934e 100644 --- a/django/db/utils.py +++ b/django/db/utils.py @@ -282,6 +282,6 @@ class ConnectionRouter(object): """ Return app models allowed to be synchronized on provided db. """ - from django.apps import app_cache - return [model for model in app_cache.get_models(app, include_auto_created=include_auto_created) + from django.apps import apps + return [model for model in apps.get_models(app, include_auto_created=include_auto_created) if self.allow_migrate(db, model)] |