Commit c0ce02c9 authored by 王浩's avatar 王浩

Merge branch 'dev' of http://git.wanmeizhensuo.com/alpha/sun into haow/dev

parents 52c47605 75757ca7
......@@ -16,7 +16,7 @@ class TopicHomeRecommendList(APIView):
error_logger.error(u'获取首页推荐帖子列表失败%s', e)
raise
return {'data': data}
return data
class TopicHomeRecommendEdit(APIView):
......
......@@ -136,6 +136,7 @@ class TopicUpdateOrCreateView(APIView):
'drop_score': int(request.POST.get('drop_score')),
'has_image': 1 if topic_images else 0,
'has_video': 1 if request.POST.get('video_url', '') else 0,
'is_home': int(request.POST.get('is_home', 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