1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

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
This commit is contained in:
Malcolm Tredinnick
2007-08-18 04:16:04 +00:00
parent a89e401648
commit 7969c1ba05
2 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ from django.conf import settings
from django.db.models.related import RelatedObject
from django.db.models.fields.related import ManyToManyRel
from django.db.models.fields import AutoField, FieldDoesNotExist
from django.db.models.loading import get_models, cache_ready
from django.db.models.loading import get_models, app_cache_ready
from django.db.models.query import orderlist2sql
from django.db.models import Manager
from django.utils.translation import activate, deactivate_all, get_language, string_concat
@@ -179,7 +179,7 @@ class Options(object):
for f in klass._meta.many_to_many:
if f.rel and self == f.rel.to._meta:
rel_objs.append(RelatedObject(f.rel.to, klass, f))
if cache_ready():
if app_cache_ready():
self._all_related_many_to_many_objects = rel_objs
return rel_objs