Skip to content

It is possible to pass a negative value via page_size in CursorPagination #8277

Discussion options

You must be logged in to vote

So the preceding line self.page_size = self.get_page_size(request) always returns either a positive integer or None.

(Unless you've overridden get_page_size to behave differently.)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adamlitz
Comment options

Answer selected by adamlitz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants