Commit c98d1b47 authored by yangchenglin's avatar yangchenglin

fix operation recommend

parent c27fbda9
...@@ -59,7 +59,7 @@ class PictorialUpdateOrCreate(APIView): ...@@ -59,7 +59,7 @@ class PictorialUpdateOrCreate(APIView):
'pictorial_user_ids': pictorial_user_ids, 'pictorial_user_ids': pictorial_user_ids,
'icon': request.POST.get('icon', ''), 'icon': request.POST.get('icon', ''),
'collection_tag_ids': collection_tag_ids, 'collection_tag_ids': collection_tag_ids,
'is_home_recommend': request.POST.get('is_home_recommend', 0), 'is_home_recommend': int(request.POST.get('is_home_recommend', 0)),
} }
try: try:
data = self.rpc['venus/sun/pictorial/edit'](id=id, data=data).unwrap() data = self.rpc['venus/sun/pictorial/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