Actually allow customizing the page size
This commit is contained in:
parent
7d3605f5e1
commit
4c600651b6
1 changed files with 1 additions and 0 deletions
|
@ -3,4 +3,5 @@ from rest_framework.pagination import PageNumberPagination
|
||||||
|
|
||||||
class CustomPageNumberPagination(PageNumberPagination):
|
class CustomPageNumberPagination(PageNumberPagination):
|
||||||
page_size = 10
|
page_size = 10
|
||||||
|
page_size_query_param = "page_size"
|
||||||
max_page_size = 25
|
max_page_size = 25
|
||||||
|
|
Loading…
Reference in a new issue