It is possible to pass a negative value via page_size in CursorPagination
#8277
Answered
by
lovelydinosaur
adamlitz
asked this question in
Potential Issue
-
|
When used against queryset, it will raise the |
Beta Was this translation helpful? Give feedback.
Answered by
lovelydinosaur
Dec 6, 2021
Replies: 1 comment 1 reply
-
|
So the preceding line (Unless you've overridden |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
adamlitz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So the preceding line
self.page_size = self.get_page_size(request)always returns either a positive integer orNone.(Unless you've overridden
get_page_sizeto behave differently.)