Commit dda2e645 authored by yangchenglin's avatar yangchenglin

fix

parent 1ae7c00f
from utils.base import APIView import json
from utils.base import APIView, get_offset_count from utils.base import APIView, get_offset_count
...@@ -23,7 +23,7 @@ class SurveyView(APIView): ...@@ -23,7 +23,7 @@ class SurveyView(APIView):
def post(self, request): def post(self, request):
questions = request.POST.get('questions') questions = json.loads(request.POST.get('questions'))
data = { data = {
"name": request.POST.get('name', ""), "name": request.POST.get('name', ""),
......
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