Skip to content

Commit 562b6bb

Browse files
James LinJames Lin
authored andcommitted
bug fix clone include page_size
1 parent 5e5f279 commit 562b6bb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

rest_framework_queryset/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
from __future__ import unicode_literals
33
from __future__ import absolute_import
44

5-
__version__ = '0.1.1'
5+
__version__ = '0.1.2'
66

77
from .queryset import RestFrameworkQuerySet

rest_framework_queryset/queryset.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ def __iter__(self):
6464
for item in paginator.page(page).object_list:
6565
yield item
6666

67+
def _clone(self):
68+
cloned = super(RestFrameworkQuerySet, self)._clone()
69+
cloned.page_size = self.page_size
70+
return cloned
71+
6772
def count(self):
6873
cloned = self._clone()
6974
params = cloned.kwargs.get('params', {})

0 commit comments

Comments
 (0)