(backend) allow forcing page size within limits

We want to be able to increase the page size with by passing
the query string parameter "page_size".
This commit is contained in:
Samuel Paccoud - DINUM
2025-02-15 13:16:35 +01:00
committed by Manuel Raynaud
parent 757d7f35cd
commit fcf8b38021
3 changed files with 31 additions and 0 deletions

View File

@@ -418,6 +418,7 @@ class DocumentViewSet(
metadata_class = DocumentMetadata
ordering = ["-updated_at"]
ordering_fields = ["created_at", "updated_at", "title"]
pagination_class = Pagination
permission_classes = [
permissions.DocumentAccessPermission,
]