Ticket #18097: fix_queryset_contains.diff
File fix_queryset_contains.diff, 639 bytes (added by , 13 years ago) |
---|
-
django/db/models/query.py
155 155 while True: 156 156 if len(self._result_cache) <= pos: 157 157 self._fill_cache(num=1) 158 if self._result_cache[pos] == val: 159 return True 158 160 if self._iter is None: 159 161 # we ran out of items 160 162 return False 161 if self._result_cache[pos] == val:162 return True163 163 pos += 1 164 164 165 165 def __getitem__(self, k):