mirror of
https://github.com/task-17-lct/backend.git
synced 2024-11-24 05:03:43 +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
|