from rest_framework_xml.parsers import XMLParser class WechatContentParser(XMLParser): media_type = 'text/xml' pass