Commit 992cf45c authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'dev'

fix create topic video_url

See merge request !48
parents 72871068 eafd246f
...@@ -61,7 +61,7 @@ class TopicUpdateOrCreateView(APIView): ...@@ -61,7 +61,7 @@ class TopicUpdateOrCreateView(APIView):
'is_online': int(request.POST.get('is_online')), 'is_online': int(request.POST.get('is_online')),
'drop_score': int(request.POST.get('drop_score')), 'drop_score': int(request.POST.get('drop_score')),
'has_image': 1 if topic_images else 0, 'has_image': 1 if topic_images else 0,
'has_video': 1 if video_url else 0, 'has_video': 1 if request.POST.get('video_url', '') else 0,
} }
try: try:
self.rpc['venus/sun/topic/edit'](id=id, data=data).unwrap() 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