Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

Commit

Permalink
api: set a maximum page size of 300
Browse files Browse the repository at this point in the history
Some maximum needs to be set for the page sizes which can be returned.
Set 300 as an arbitrary maximum.
  • Loading branch information
rjw57 committed Oct 15, 2018
1 parent 6ddbd55 commit 353b9e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
class ListPagination(pagination.CursorPagination):
page_size = 50
page_size_query_param = 'page_size'
max_page_size = 300


class FullTextSearchFilter(filters.SearchFilter):
Expand Down

0 comments on commit 353b9e3

Please sign in to comment.