Commit 4618fdbf authored by yangchenglin's avatar yangchenglin

fix

parent bc90e915
......@@ -40,9 +40,13 @@ class SurveyAddAnswerView(APIView):
def post(self, request):
answers = json.loads(request.POST.get('answers'))
data = {
"answers": json.loads(request.POST.get('answers')),
"template_id": request.POST.get('template_id'),
"question_order": request.POST.get('question_order'),
}
self.rpc['venus/sun/survey/answers_add'](data=answers).unwrap()
self.rpc['venus/sun/survey/answers_add'](data=data).unwrap()
return {
"status": 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment