1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Set an upper limit of 200 on the max page size

This commit is contained in:
Matthew Jones 2016-12-12 12:01:48 -05:00
parent 2d6dff1a3b
commit 08edbb1b72

View File

@ -9,6 +9,7 @@ from rest_framework.utils.urls import replace_query_param
class Pagination(pagination.PageNumberPagination):
page_size_query_param = 'page_size'
max_page_size = 200
def get_next_link(self):
if not self.page.has_next():