Commit b0c968c5 authored by 杨成林's avatar 杨成林

Merge branch 'ycl/fix' into 'test'

fix

See merge request alpha/sun!193
parents 266cb0b3 9a91008c
...@@ -140,6 +140,7 @@ class TopicUpdateOrCreateView(APIView): ...@@ -140,6 +140,7 @@ class TopicUpdateOrCreateView(APIView):
'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', ''), 'virtual_vote_num': request.POST.get('virtual_vote_num', ''),
'is_home': int(request.POST.get('is_home', 0)), 'is_home': int(request.POST.get('is_home', 0)),
'is_recommend': int(request.POST.get('is_recommend', 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