summaryrefslogtreecommitdiff
path: root/django/db/models
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2012-02-28 19:34:04 +0000
committerLuke Plant <L.Plant.98@cantab.net>2012-02-28 19:34:04 +0000
commitde9942a6673cfbe442abdfabc1e8f7c0a652ef5b (patch)
tree4672c363db7cbb1b81ea533be2b00b0ce25129f0 /django/db/models
parent4b641b78fa1e9cf774d1c0339ef07a854c35e011 (diff)
Fixed #17668 - prefetch_related does not work in in_bulk
Thanks to gurets for the report, and akaariai for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17600 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models')
-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 41c24c7a58..08fda78332 100644
--- a/django/db/models/query.py
+++ b/django/db/models/query.py
@@ -485,7 +485,7 @@ class QuerySet(object):
qs = self._clone()
qs.query.add_filter(('pk__in', id_list))
qs.query.clear_ordering(force_empty=True)
- return dict([(obj._get_pk_val(), obj) for obj in qs.iterator()])
+ return dict([(obj._get_pk_val(), obj) for obj in qs])
def delete(self):
"""