Commit f38842c9 authored by zhongshangwu's avatar zhongshangwu

标签编辑增加是否经验标签字段

parent f132c0c4
...@@ -74,6 +74,9 @@ class TagUpdateOrCreateView(APIView): ...@@ -74,6 +74,9 @@ class TagUpdateOrCreateView(APIView):
'is_core': request.POST.get('is_core', 0), 'is_core': request.POST.get('is_core', 0),
'official_pictorial_id': official_pictorial_id, 'official_pictorial_id': official_pictorial_id,
'is_show_in_register': request.POST.get('is_show_in_register', 'false'), 'is_show_in_register': request.POST.get('is_show_in_register', 'false'),
'is_expert': request.POST.get('is_expert', 0),
'gray_badge': request.POST.get('gray_badge', ''),
'light_badge': request.POST.get('light_badge', ''),
'pictorial_ids': list( 'pictorial_ids': list(
(map(lambda x: int(x.split(":")[0]), json.loads((request.POST.get('pictorial_ids', '[]')))))) (map(lambda x: int(x.split(":")[0]), json.loads((request.POST.get('pictorial_ids', '[]'))))))
} }
......
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