Commit d851dae7 authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'test'

fix code

See merge request alpha/sun!306
parents 6dc3158f bfc5effd
...@@ -64,6 +64,7 @@ class PictorialUpdateOrCreate(APIView): ...@@ -64,6 +64,7 @@ class PictorialUpdateOrCreate(APIView):
'is_home_recommend': int(request.POST.get('is_home_recommend', 0)), 'is_home_recommend': int(request.POST.get('is_home_recommend', 0)),
'add_score': int(request.POST.get('add_score', 0)), 'add_score': int(request.POST.get('add_score', 0)),
'is_public': True if request.POST.get('is_public') == "true" else False, 'is_public': True if request.POST.get('is_public') == "true" else False,
'is_finished': request.POST.get('is_finished', None),
'is_feed': int(request.POST.get('is_feed', 0)), 'is_feed': int(request.POST.get('is_feed', 0)),
'pictorial_activity_ids': [int(pictorial_activity_id)] if pictorial_activity_id else [], 'pictorial_activity_ids': [int(pictorial_activity_id)] if pictorial_activity_id else [],
'alias': request.POST.get('alias', ''), 'alias': request.POST.get('alias', ''),
......
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