Skip to content

Commit

Permalink
ValuesQuerySets (and subclasses) were inadvertently not caching their…
Browse files Browse the repository at this point in the history
… results.

Fixed.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Apr 28, 2008
1 parent ba010ec commit db80f57
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions django/db/models/query.py
Expand Up @@ -497,9 +497,6 @@ def __init__(self, *args, **kwargs):
# QuerySet.clone() will also set up the _fields attribute with the
# names of the model fields to select.

def __iter__(self):
return self.iterator()

def iterator(self):
self.query.trim_extra_select(self.extra_names)
names = self.query.extra_select.keys() + self.field_names
Expand Down

0 comments on commit db80f57

Please sign in to comment.