Commit a395e744 authored by haowang's avatar haowang

fix code

parent 970f0876
......@@ -204,3 +204,19 @@ class ReplyManageBatchMove(APIView):
return {
"message": '更新成功',
}
class ReplyManageEdit(APIView):
def post(self, request):
id_ = request.POST.get('id')
content = request.POST.get('content')
try:
self.rpc['venus/sun/reply/manage/edit'](id_=id_, data={'content': content}).unwrap()
except Exception as e:
error_logger.error(u'平移reply失败%s' % (e))
raise
return {
"message": '更新成功',
}
......@@ -222,6 +222,7 @@ urlpatterns = [
url(r'^reply/vote$', ReplyVote.as_view()),
# 评论管理
url(r'^reply/manage/edit$', ReplyManageEdit.as_view()),
url(r'^reply/manage/batch/move$', ReplyManageBatchMove.as_view()),
url(r'^reply/manage/list$', ReplyManageListView.as_view()),
url(r'^reply/manage/create$', ReplyManageCreateView.as_view()),
......
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