[Bugfix]修复解析器顺序bug,csv解析器需在file解析器前 (#2734)

pull/2736/head
八千流 2019-05-27 15:21:33 +08:00 committed by 老广
parent 21ac3eaf8b
commit f576f2eda2
1 changed files with 1 additions and 1 deletions

View File

@ -378,8 +378,8 @@ REST_FRAMEWORK = {
'rest_framework.parsers.JSONParser',
'rest_framework.parsers.FormParser',
'rest_framework.parsers.MultiPartParser',
'common.parsers.JMSCSVParser',
'rest_framework.parsers.FileUploadParser',
'common.parsers.JMSCSVParser'
),
'DEFAULT_AUTHENTICATION_CLASSES': (
# 'rest_framework.authentication.BasicAuthentication',