mirror of
https://github.com/magnum-opus-nn-cp/backend.git
synced 2024-11-14 03:46:33 +03:00
20 lines
482 B
Python
20 lines
482 B
Python
from rest_framework.pagination import PageNumberPagination
|
|
|
|
|
|
class SmallResultsSetPagination(PageNumberPagination):
|
|
page_size = 10
|
|
page_size_query_param = "page_size"
|
|
max_page_size = 100
|
|
|
|
|
|
class StandardResultsSetPagination(PageNumberPagination):
|
|
page_size = 50
|
|
page_size_query_param = "page_size"
|
|
max_page_size = 200
|
|
|
|
|
|
class BigResultsSetPagination(PageNumberPagination):
|
|
page_size = 100
|
|
page_size_query_param = "page_size"
|
|
max_page_size = 1000
|