Commit 69f87f5a authored by 王浩's avatar 王浩

create topic add has image and video

parent 8f97e6d9
......@@ -60,6 +60,8 @@ class TopicUpdateOrCreateView(APIView):
'tag_ids': tag_ids,
'is_online': int(request.POST.get('is_online')),
'drop_score': int(request.POST.get('drop_score')),
'has_image': 1 if topic_images else 0,
'has_video': 1 if video_url else 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