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

This commit is contained in:
八千流
2019-05-27 15:21:33 +08:00
committed by 老广
parent 21ac3eaf8b
commit f576f2eda2

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',