Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Brought comments in sync with the code in BaseAppCache.

  • Loading branch information...
commit 9c5f59f48954507f9d547c0d51f038f1a216a6c2 1 parent 5cd6477
@aaugustin aaugustin authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 django/db/models/
11 django/db/models/
@@ -55,6 +55,10 @@ def _initialize():
# Pending lookups for lazy relations
+ # List of app_labels that allows restricting the set of apps.
+ # Used by TransactionTestCase.available_apps for performance reasons.
+ available_apps=None,
# -- Everything below here is only used when populating the cache --
@@ -62,7 +66,6 @@ def _initialize():
- available_apps=None,
@@ -72,8 +75,7 @@ class BaseAppCache(object):
provide reverse-relations and for app introspection (e.g. admin).
This provides the base (non-Borg) AppCache class - the AppCache
- subclass adds borg-like behaviour for the few cases where it's needed,
- and adds the code that auto-loads from INSTALLED_APPS.
+ subclass adds borg-like behaviour for the few cases where it's needed.
def __init__(self):
@@ -84,9 +86,6 @@ def __init__(self):
def _populate(self):
- Stub method - this base class does no auto-loading.
- """
- """
Fill in all the cache information. This method is threadsafe, in the
sense that every caller will see the same state upon return, and if the
cache is already initialised, it does no work.

0 comments on commit 9c5f59f

Please sign in to comment.
Something went wrong with that request. Please try again.