1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Add custom pagination size as an API parameter

This commit is contained in:
Otthorn
2022-12-14 18:37:13 +01:00
committed by Solal Nathan
parent 0a853fd3e6
commit 87f3b51b04
2 changed files with 6 additions and 1 deletions

5
apps/api/pagination.py Normal file
View File

@ -0,0 +1,5 @@
from rest_framework.pagination import PageNumberPagination
class CustomPagination(PageNumberPagination):
page_size_query_param = 'page_size'