Merge pull request #1875 from bagerard/dax_py3
CLONE - return instead of raising StopIteration
This commit is contained in:
commit
00363303b1
@ -89,7 +89,7 @@ class QuerySet(BaseQuerySet):
|
|||||||
yield self._result_cache[pos]
|
yield self._result_cache[pos]
|
||||||
pos += 1
|
pos += 1
|
||||||
|
|
||||||
# Raise StopIteration if we already established there were no more
|
# return if we already established there were no more
|
||||||
# docs in the db cursor.
|
# docs in the db cursor.
|
||||||
if not self._has_more:
|
if not self._has_more:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user