mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Move settings into more sensible ordering
This commit is contained in:
parent
c3e273a90e
commit
dce47a11d3
|
@ -48,7 +48,6 @@ DEFAULTS = {
|
||||||
),
|
),
|
||||||
'DEFAULT_THROTTLE_CLASSES': (
|
'DEFAULT_THROTTLE_CLASSES': (
|
||||||
),
|
),
|
||||||
|
|
||||||
'DEFAULT_CONTENT_NEGOTIATION_CLASS':
|
'DEFAULT_CONTENT_NEGOTIATION_CLASS':
|
||||||
'rest_framework.negotiation.DefaultContentNegotiation',
|
'rest_framework.negotiation.DefaultContentNegotiation',
|
||||||
|
|
||||||
|
@ -69,14 +68,14 @@ DEFAULTS = {
|
||||||
'PAGINATE_BY': None,
|
'PAGINATE_BY': None,
|
||||||
'PAGINATE_BY_PARAM': None,
|
'PAGINATE_BY_PARAM': None,
|
||||||
|
|
||||||
# View configuration
|
|
||||||
'VIEW_NAME_FUNCTION': 'rest_framework.views.get_view_name',
|
|
||||||
'VIEW_DESCRIPTION_FUNCTION': 'rest_framework.views.get_view_description',
|
|
||||||
|
|
||||||
# Authentication
|
# Authentication
|
||||||
'UNAUTHENTICATED_USER': 'django.contrib.auth.models.AnonymousUser',
|
'UNAUTHENTICATED_USER': 'django.contrib.auth.models.AnonymousUser',
|
||||||
'UNAUTHENTICATED_TOKEN': None,
|
'UNAUTHENTICATED_TOKEN': None,
|
||||||
|
|
||||||
|
# View configuration
|
||||||
|
'VIEW_NAME_FUNCTION': 'rest_framework.views.get_view_name',
|
||||||
|
'VIEW_DESCRIPTION_FUNCTION': 'rest_framework.views.get_view_description',
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
'TEST_REQUEST_RENDERER_CLASSES': (
|
'TEST_REQUEST_RENDERER_CLASSES': (
|
||||||
'rest_framework.renderers.MultiPartRenderer',
|
'rest_framework.renderers.MultiPartRenderer',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user