mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 19:40:13 +03:00
Merge 89eba7788f
into ea462b7b9b
This commit is contained in:
commit
f495ea0092
|
@ -68,7 +68,7 @@ class GenericAPIView(views.APIView):
|
||||||
# The following attributes may be subject to change,
|
# The following attributes may be subject to change,
|
||||||
# and should be considered private API.
|
# and should be considered private API.
|
||||||
model_serializer_class = api_settings.DEFAULT_MODEL_SERIALIZER_CLASS
|
model_serializer_class = api_settings.DEFAULT_MODEL_SERIALIZER_CLASS
|
||||||
paginator_class = Paginator
|
paginator_class = api_settings.DEFAULT_PAGINATOR_CLASS
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
# These are pending deprecation...
|
# These are pending deprecation...
|
||||||
|
|
|
@ -56,6 +56,8 @@ DEFAULTS = {
|
||||||
'rest_framework.serializers.ModelSerializer',
|
'rest_framework.serializers.ModelSerializer',
|
||||||
'DEFAULT_PAGINATION_SERIALIZER_CLASS':
|
'DEFAULT_PAGINATION_SERIALIZER_CLASS':
|
||||||
'rest_framework.pagination.PaginationSerializer',
|
'rest_framework.pagination.PaginationSerializer',
|
||||||
|
'DEFAULT_PAGINATOR_CLASS':
|
||||||
|
'django.core.paginator.Paginator',
|
||||||
'DEFAULT_FILTER_BACKENDS': (),
|
'DEFAULT_FILTER_BACKENDS': (),
|
||||||
|
|
||||||
# Throttling
|
# Throttling
|
||||||
|
@ -127,6 +129,7 @@ IMPORT_STRINGS = (
|
||||||
'DEFAULT_CONTENT_NEGOTIATION_CLASS',
|
'DEFAULT_CONTENT_NEGOTIATION_CLASS',
|
||||||
'DEFAULT_MODEL_SERIALIZER_CLASS',
|
'DEFAULT_MODEL_SERIALIZER_CLASS',
|
||||||
'DEFAULT_PAGINATION_SERIALIZER_CLASS',
|
'DEFAULT_PAGINATION_SERIALIZER_CLASS',
|
||||||
|
'DEFAULT_PAGINATOR_CLASS',
|
||||||
'DEFAULT_FILTER_BACKENDS',
|
'DEFAULT_FILTER_BACKENDS',
|
||||||
'EXCEPTION_HANDLER',
|
'EXCEPTION_HANDLER',
|
||||||
'FILTER_BACKEND',
|
'FILTER_BACKEND',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user