Commit c02c9f58 authored by yangchenglin's avatar yangchenglin

fix

parent 7e24ee7f
...@@ -65,7 +65,7 @@ class TagUpdateOrCreateView(APIView): ...@@ -65,7 +65,7 @@ class TagUpdateOrCreateView(APIView):
'alias': request.POST.get('alias', ''), 'alias': request.POST.get('alias', ''),
'is_show_in_register': request.POST.get('is_show_in_register', 'false'), 'is_show_in_register': request.POST.get('is_show_in_register', 'false'),
'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('pictorials', '[]'))))))
} }
try: try:
data = self.rpc['venus/sun/tag/edit'](id=id, data=data).unwrap() data = self.rpc['venus/sun/tag/edit'](id=id, data=data).unwrap()
......
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