Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,9 @@
AUTH_PAGE_LIMIT = env.int("AUTH_PAGE_LIMIT", default=1000)
ANON_PAGE_LIMIT = env.int("ANON_PAGE_LIMIT", default=100)

DEFAULT_PAGE_SIZE = env.int("DEFAULT_PAGE_SIZE", default=25)
MAX_PAGE_SIZE = env.int("MAX_PAGE_SIZE", default=1000)

# django-extensions
# ------------------------------------------------------------------------------
# https://django-extensions.readthedocs.io/en/latest/installation_instructions.html#configuration
Expand Down
4 changes: 2 additions & 2 deletions documentcloud/core/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def paginate_queryset(self, queryset, request, view=None):

class CursorPagination(pagination.CursorPagination):
ordering = "pk"
page_size = 25
max_page_size = 1000
page_size = settings.DEFAULT_PAGE_SIZE
max_page_size = settings.MAX_PAGE_SIZE
page_size_query_param = "per_page"


Expand Down
4 changes: 0 additions & 4 deletions local.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

volumes:
local_postgres15_data: {}
local_postgres15_data_backups: {}
Expand All @@ -8,7 +6,6 @@ volumes:
local_minio_data: {}

services:

documentcloud_django: &django
build:
context: .
Expand All @@ -35,7 +32,6 @@ services:
aliases:
- internal.api.dev.documentcloud.org


documentcloud_postgres:
build:
context: .
Expand Down
Loading