Ticket #6787: result_cache.patch

File result_cache.patch, 501 bytes (added by Manuel Saelices, 17 years ago)

A patch that fixes error

  • django/db/models/query.py

     
    4141            else:
    4242                self._result_cache = list(self.iterator())
    4343        elif self._iter:
    44             self.result_cache.extend(list(self._iter))
     44            self._result_cache.extend(list(self._iter))
    4545        return len(self._result_cache)
    4646
    4747    def __iter__(self):
Back to Top