Commit 7be528eb authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

api: Make API respect perpage param

Pagination was broken because of a wrong attribute of PageNumberPagination
class was being set.
Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <>
parent b72d45c9
......@@ -112,7 +112,7 @@ class API(views.APIView):
class ListPagination(PageNumberPagination):
page_size = 20
paginate_by_param = 'perpage'
page_size_query_param = 'perpage'
max_page_size = 100
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment