1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

Refs #15093 -- Fixed another get_models call missed in r16053. Thanks Luke for catching it.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Carl Meyer
2011-04-27 17:51:43 +00:00
parent 04654e554f
commit 2706fdbc87
3 changed files with 6 additions and 2 deletions

View File

@@ -420,7 +420,7 @@ class Options(object):
cache[obj] = parent
else:
cache[obj] = model
for klass in get_models():
for klass in get_models(only_installed=False):
for f in klass._meta.local_many_to_many:
if f.rel and not isinstance(f.rel.to, str) and self == f.rel.to._meta:
cache[RelatedObject(f.rel.to, klass, f)] = None