Commit 0b28666a authored by yangchenglin's avatar yangchenglin

fix

parent 4f79d5fb
......@@ -61,7 +61,7 @@ class PictorialUpdateOrCreate(APIView):
'collection_tag_ids': collection_tag_ids,
'is_home_recommend': int(request.POST.get('is_home_recommend', 0)),
'add_score': int(request.POST.get('add_score', 0)),
'is_public': int(request.POST.get('is_public', 0))
'is_public': True if request.POST.get('is_public') == "true" else False
}
try:
......
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