ValuesQuerySets (and subclasses) were inadvertently not caching their results.
Fixed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ba010ec1c0
commit
db80f57c6e
|
@ -497,9 +497,6 @@ class ValuesQuerySet(QuerySet):
|
||||||
# QuerySet.clone() will also set up the _fields attribute with the
|
# QuerySet.clone() will also set up the _fields attribute with the
|
||||||
# names of the model fields to select.
|
# names of the model fields to select.
|
||||||
|
|
||||||
def __iter__(self):
|
|
||||||
return self.iterator()
|
|
||||||
|
|
||||||
def iterator(self):
|
def iterator(self):
|
||||||
self.query.trim_extra_select(self.extra_names)
|
self.query.trim_extra_select(self.extra_names)
|
||||||
names = self.query.extra_select.keys() + self.field_names
|
names = self.query.extra_select.keys() + self.field_names
|
||||||
|
|
Loading…
Reference in New Issue