REST_FRAMEWORK DEFAULT_FILTER_BACKE NDS rest_framework filters DjangoF

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
REST_FRAMEWORK = {
'DEFAULT_FILTER_BACKENDS': ['rest_framework.filters.DjangoFilterBackend'],
# Input and output formats
'DATE_INPUT_FORMATS': (
ISO_8601,
'%Y-%m-%d'
),
'DATE_FORMAT': None,
'DATETIME_INPUT_FORMATS': (
ISO_8601,
),
'DATETIME_FORMAT': None,
'TIME_INPUT_FORMATS': (
ISO_8601,
),
'TIME_FORMAT': None,
'TEST_REQUEST_DEFAULT_FORMAT': 'json',
}