summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-03-20 15:42:18 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-03-20 15:42:18 +0000
commit4d00ac86eea3c4df7b11a9ca195ea69426e70f6a (patch)
treea7499cdfccfe3145e9f8b876ebb0417942749d9f /django
parenteb1c7b033ddac99b333407ba0b964831aa5ef9c4 (diff)
[1.1.X] Fixed #12851 -- Corrected the interaction of defer() with select_related(). Thanks to ruosteinen for the report.
Backport of r12817 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/db/models/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py
index 9c3cf48e88..e021fd317e 100644
--- a/django/db/models/query.py
+++ b/django/db/models/query.py
@@ -996,7 +996,7 @@ def get_cached_row(klass, row, index_start, max_depth=0, cur_depth=0,
else:
next = None
cached_row = get_cached_row(f.rel.to, row, index_end, max_depth,
- cur_depth+1, next)
+ cur_depth+1, next, only_load=only_load)
if cached_row:
rel_obj, index_end = cached_row
if obj is not None: