Commit a5046db2 authored by 杨成林's avatar 杨成林

Merge branch 'ycl/pictorial_activity' into 'dev'

fix

See merge request alpha/sun!247
parents 1d5ff076 7e24ee7f
......@@ -64,7 +64,8 @@ class TagUpdateOrCreateView(APIView):
'collection': request.POST.get('collection', 0),
'alias': request.POST.get('alias', ''),
'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:
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