Ticket #6787: result_cache.patch
File result_cache.patch, 501 bytes (added by , 17 years ago) |
---|
-
django/db/models/query.py
41 41 else: 42 42 self._result_cache = list(self.iterator()) 43 43 elif self._iter: 44 self. result_cache.extend(list(self._iter))44 self._result_cache.extend(list(self._iter)) 45 45 return len(self._result_cache) 46 46 47 47 def __iter__(self):