mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
Merge cdfcdf4772
into 9b56dda918
This commit is contained in:
commit
620d50345f
|
@ -291,7 +291,7 @@ class LimitOffsetPagination(BasePagination):
|
||||||
default_limit = api_settings.PAGE_SIZE
|
default_limit = api_settings.PAGE_SIZE
|
||||||
limit_query_param = 'limit'
|
limit_query_param = 'limit'
|
||||||
offset_query_param = 'offset'
|
offset_query_param = 'offset'
|
||||||
max_limit = None
|
max_limit = api_settings.MAX_PAGINATE_BY
|
||||||
template = 'rest_framework/pagination/numbers.html'
|
template = 'rest_framework/pagination/numbers.html'
|
||||||
|
|
||||||
def paginate_queryset(self, queryset, request, view=None):
|
def paginate_queryset(self, queryset, request, view=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user