From 1716b7ce5a02b2a77188dfea2d41e25dfa58821c Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Tue, 24 Dec 2013 12:25:17 +0100 Subject: 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(). --- django/utils/module_loading.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'django/utils/module_loading.py') diff --git a/django/utils/module_loading.py b/django/utils/module_loading.py index c7826be5e5..1ed7d93e31 100644 --- a/django/utils/module_loading.py +++ b/django/utils/module_loading.py @@ -58,10 +58,10 @@ def autodiscover_modules(*args, **kwargs): registry. This register_to object must have a _registry instance variable to access it. """ - from django.apps import app_cache + from django.apps import apps register_to = kwargs.get('register_to') - for app_config in app_cache.get_app_configs(): + for app_config in apps.get_app_configs(): # Attempt to import the app's module. try: if register_to: -- cgit v1.3