summaryrefslogtreecommitdiff
path: root/django/db/models/loading.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-08-18 04:16:04 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-08-18 04:16:04 +0000
commit7969c1ba05ef342725083d060b038a8a874e69e6 (patch)
tree94c817a1f875bfc30efdfdc991f28c60fc6cc697 /django/db/models/loading.py
parenta89e401648512f960d71505a5aa9a32a088eb0ef (diff)
Renamed Cache to AppCache and cache_ready() to app_cache_ready() from [5919] in order to avoid any potential confusion with Django's caching middleware functionality when reading the code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/loading.py')
-rw-r--r--django/db/models/loading.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/django/db/models/loading.py b/django/db/models/loading.py
index dc8e903c45..090390aa9e 100644
--- a/django/db/models/loading.py
+++ b/django/db/models/loading.py
@@ -7,9 +7,9 @@ import os
import threading
__all__ = ('get_apps', 'get_app', 'get_models', 'get_model', 'register_models',
- 'load_app', 'cache_ready')
+ 'load_app', 'app_cache_ready')
-class Cache(object):
+class AppCache(object):
"""
A cache that stores installed applications and their models. Used to
provide reverse-relations and for app introspection (e.g. admin).
@@ -85,7 +85,7 @@ class Cache(object):
self.app_store[mod.models] = len(self.app_store)
return mod.models
- def cache_ready(self):
+ def app_cache_ready(self):
"""
Returns true if the model cache is fully populated.
@@ -177,7 +177,7 @@ class Cache(object):
continue
model_dict[model_name] = model
-cache = Cache()
+cache = AppCache()
# These methods were always module level, so are kept that way for backwards
# compatibility.
@@ -188,4 +188,4 @@ get_models = cache.get_models
get_model = cache.get_model
register_models = cache.register_models
load_app = cache.load_app
-cache_ready = cache.cache_ready
+app_cache_ready = cache.app_cache_ready