Initial commit: igny8 project

This commit is contained in:
igny8
2025-11-09 10:27:02 +00:00
commit 60b8188111
27265 changed files with 4360521 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
"""
Custom pagination class for DRF to support dynamic page_size query parameter
"""
from rest_framework.pagination import PageNumberPagination
class CustomPageNumberPagination(PageNumberPagination):
"""
Custom pagination class that allows clients to override the page size
via the page_size query parameter.
Default page size: 10
Max page size: 100
"""
page_size = 10
page_size_query_param = 'page_size'
max_page_size = 100