Commit 7e24ee7f authored by yangchenglin's avatar yangchenglin

fix

parent 6911e00f
...@@ -64,7 +64,8 @@ class TagUpdateOrCreateView(APIView): ...@@ -64,7 +64,8 @@ class TagUpdateOrCreateView(APIView):
'collection': request.POST.get('collection', 0), 'collection': request.POST.get('collection', 0),
'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': json.loads(request.POST.get('pictorial_ids', '[]')) 'pictorial_ids': list(
(map(lambda x: int(x.split(":")[0]), json.loads((request.POST.get('pictorial_ids', '[]'))))))
} }
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