diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-04-28 12:09:23 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-04-28 12:09:23 +0000 |
| commit | db80f57c6efb23304eb9fb7899b078a85836f850 (patch) | |
| tree | 872f179ab48e280902966b05e22fb202f4d9a03f | |
| parent | ba010ec1c04c4832d42b088b092df0969afdb7e6 (diff) | |
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
| -rw-r--r-- | django/db/models/query.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py index 3696181a5c..3011b9d9a6 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -497,9 +497,6 @@ class ValuesQuerySet(QuerySet): # 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 |
