Commit 01e4d534 authored by Davve's avatar Davve

修改pick

parent 59bed335
......@@ -70,11 +70,15 @@ class UpdateOrCreateView(APIView):
data_dict['gender'] = 0
elif gender == '女':
data_dict['gender'] = 1
else:
data_dict['gender'] = gender
if pick_type == '明星打榜':
data_dict['pick_type'] = 1
elif pick_type == 'PICK帖子':
data_dict['pick_type'] = 0
else:
data_dict['pick_type'] = pick_type
data = {
'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