mirror of
https://github.com/BlackWallTeam/Backend.git
synced 2024-11-22 08:46:34 +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
|