mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 06:26:00 -03:30
Set an upper limit of 200 on the max page size
This commit is contained in:
@@ -9,6 +9,7 @@ from rest_framework.utils.urls import replace_query_param
|
|||||||
class Pagination(pagination.PageNumberPagination):
|
class Pagination(pagination.PageNumberPagination):
|
||||||
|
|
||||||
page_size_query_param = 'page_size'
|
page_size_query_param = 'page_size'
|
||||||
|
max_page_size = 200
|
||||||
|
|
||||||
def get_next_link(self):
|
def get_next_link(self):
|
||||||
if not self.page.has_next():
|
if not self.page.has_next():
|
||||||
|
|||||||
Reference in New Issue
Block a user