Commit c71776ba authored by haowang's avatar haowang

virtual vote num add in topic

parent a6c2dcb9
...@@ -129,6 +129,8 @@ class TopicUpdateOrCreateView(APIView): ...@@ -129,6 +129,8 @@ class TopicUpdateOrCreateView(APIView):
'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 request.POST.get('video_url', '') else 0, 'has_video': 1 if request.POST.get('video_url', '') else 0,
'virtual_vote_num': request.POST.get('virtual_vote_num', ''),
} }
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