mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-28 04:24:00 +03:00
Fix setting typo
Co-authored-by: Roman Gorbil <roman.gorbil@saritasa.com>
This commit is contained in:
parent
1ada7c7d22
commit
91695fb3c6
|
@ -172,10 +172,6 @@ class PageNumberPagination(BasePagination):
|
||||||
# The default page size.
|
# The default page size.
|
||||||
# Defaults to `None`, meaning pagination is disabled.
|
# Defaults to `None`, meaning pagination is disabled.
|
||||||
page_size = api_settings.PAGE_SIZE
|
page_size = api_settings.PAGE_SIZE
|
||||||
# The maximum page size.
|
|
||||||
# Defaults to `None`, meaning page size is unlimited.
|
|
||||||
# It's recommended that you would set a limit to avoid api abuse.
|
|
||||||
page_size = api_settings.MAX_PAGE_SIZE
|
|
||||||
|
|
||||||
django_paginator_class = DjangoPaginator
|
django_paginator_class = DjangoPaginator
|
||||||
|
|
||||||
|
@ -190,7 +186,9 @@ class PageNumberPagination(BasePagination):
|
||||||
|
|
||||||
# Set to an integer to limit the maximum page size the client may request.
|
# Set to an integer to limit the maximum page size the client may request.
|
||||||
# Only relevant if 'page_size_query_param' has also been set.
|
# Only relevant if 'page_size_query_param' has also been set.
|
||||||
max_page_size = None
|
# Defaults to `None`, meaning page size is unlimited.
|
||||||
|
# It's recommended that you would set a limit to avoid api abuse.
|
||||||
|
max_page_size = api_settings.MAX_PAGE_SIZE
|
||||||
|
|
||||||
last_page_strings = ('last',)
|
last_page_strings = ('last',)
|
||||||
|
|
||||||
|
@ -604,7 +602,7 @@ class CursorPagination(BasePagination):
|
||||||
|
|
||||||
# Set to an integer to limit the maximum page size the client may request.
|
# Set to an integer to limit the maximum page size the client may request.
|
||||||
# Only relevant if 'page_size_query_param' has also been set.
|
# Only relevant if 'page_size_query_param' has also been set.
|
||||||
max_page_size = None
|
max_page_size = api_settings.MAX_PAGE_SIZE
|
||||||
|
|
||||||
# The offset in the cursor is used in situations where we have a
|
# The offset in the cursor is used in situations where we have a
|
||||||
# nearly-unique index. (Eg millisecond precision creation timestamps)
|
# nearly-unique index. (Eg millisecond precision creation timestamps)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user