Skip to content

Commit

Permalink
Merge pull request #94 from fabioanderegg/page-pagination-fallback
Browse files Browse the repository at this point in the history
page pagination: fall back to default page_size when page_size_query_param is missing in query
  • Loading branch information
eamigo86 authored Dec 23, 2018
2 parents e043a1a + c524667 commit 7327c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_django_extras/paginations/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def paginate_queryset(self, qs, **kwargs):
page = kwargs.pop(self.page_query_param, 1)
if self.page_size_query_param:
page_size = _nonzero_int(
kwargs.get(self.page_size_query_param, None),
kwargs.get(self.page_size_query_param, self.page_size),
strict=True,
cutoff=self.max_page_size
)
Expand Down

0 comments on commit 7327c2a

Please sign in to comment.