From 93bfe60369df69afd361f51f578ff12775f3ff59 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 1 Dec 2020 11:58:14 +0100 Subject: [PATCH] api: allow setting of page size --- passbook/api/pagination.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/passbook/api/pagination.py b/passbook/api/pagination.py index 9c9ff2759..42a5249ec 100644 --- a/passbook/api/pagination.py +++ b/passbook/api/pagination.py @@ -6,6 +6,8 @@ from rest_framework.response import Response class Pagination(pagination.PageNumberPagination): """Pagination which includes total pages and current page""" + page_size_query_param = "page_size" + def get_paginated_response(self, data): previous_page_number = 0 if self.page.has_previous():