mirror of
https://github.com/evraz-hack/backend.git
synced 2024-12-01 13:23:45 +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
|