Commit b0381018 authored by 许俊鹏's avatar 许俊鹏

字符串转为int

parent 106f2ef0
......@@ -147,7 +147,7 @@ class TopicUpdateOrCreateView(APIView):
'is_recommend': int(request.POST.get('is_recommend', 0)),
'body_esthetics_tag_ids': body_esthetics_tag_ids,
'product_id': request.POST.get('product_id'),
'have_face': request.POST.get('have_face'),
'have_face': int(request.POST.get('have_face', 0)),
}
try:
self.rpc['venus/sun/topic/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