fix calling a queryset after skip and limit have been set
This commit is contained in:
parent
2560145551
commit
18baa2dd7a
1 changed files with 6 additions and 0 deletions
|
|
@ -434,6 +434,12 @@ class QuerySet(object):
|
||||||
if self._document._meta['ordering']:
|
if self._document._meta['ordering']:
|
||||||
self.order_by(*self._document._meta['ordering'])
|
self.order_by(*self._document._meta['ordering'])
|
||||||
|
|
||||||
|
if self._limit is not None:
|
||||||
|
self._cursor_obj.limit(self._limit)
|
||||||
|
|
||||||
|
if self._skip is not None:
|
||||||
|
self._cursor_obj.skip(self._skip)
|
||||||
|
|
||||||
return self._cursor_obj
|
return self._cursor_obj
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue