mirror of https://github.com/jumpserver/jumpserver
[Bugfix]修复解析器顺序bug,csv解析器需在file解析器前 (#2734)
parent
21ac3eaf8b
commit
f576f2eda2
|
@ -378,8 +378,8 @@ REST_FRAMEWORK = {
|
||||||
'rest_framework.parsers.JSONParser',
|
'rest_framework.parsers.JSONParser',
|
||||||
'rest_framework.parsers.FormParser',
|
'rest_framework.parsers.FormParser',
|
||||||
'rest_framework.parsers.MultiPartParser',
|
'rest_framework.parsers.MultiPartParser',
|
||||||
|
'common.parsers.JMSCSVParser',
|
||||||
'rest_framework.parsers.FileUploadParser',
|
'rest_framework.parsers.FileUploadParser',
|
||||||
'common.parsers.JMSCSVParser'
|
|
||||||
),
|
),
|
||||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||||
# 'rest_framework.authentication.BasicAuthentication',
|
# 'rest_framework.authentication.BasicAuthentication',
|
||||||
|
|
Loading…
Reference in New Issue