Commit 89ec5ee2 authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'test'

fix code

See merge request !292
parents 489f919b a395e744
...@@ -204,3 +204,19 @@ class ReplyManageBatchMove(APIView): ...@@ -204,3 +204,19 @@ class ReplyManageBatchMove(APIView):
return { return {
"message": '更新成功', "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": '更新成功',
}
...@@ -223,6 +223,7 @@ urlpatterns = [ ...@@ -223,6 +223,7 @@ urlpatterns = [
url(r'^reply/vote$', ReplyVote.as_view()), 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/batch/move$', ReplyManageBatchMove.as_view()),
url(r'^reply/manage/list$', ReplyManageListView.as_view()), url(r'^reply/manage/list$', ReplyManageListView.as_view()),
url(r'^reply/manage/create$', ReplyManageCreateView.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