Commit 8722e6e9 authored by 李延哲's avatar 李延哲

Merge branch 'hotfix/del_question' into 'test'

问题修改

See merge request !130
parents 1682a6ae feadb4ca
......@@ -61,7 +61,8 @@ class TagUpdateOrCreateView(APIView):
'icon_url': request.POST.get('icon_url', '')[:-2],
'platform': request.POST.get('platform'),
'collection': request.POST.get('collection'),
'alias': request.POST.get('alias')
'alias': request.POST.get('alias'),
'is_show_in_register': request.POST.get('is_show_in_register')
}
try:
data = self.rpc['venus/sun/tag/edit'](id=id, data=data).unwrap()
......@@ -122,3 +123,15 @@ class TagTypeUpdateOrCreateView(APIView):
error_logger.error(u'创建/编辑标签类型%d信息失败%s' % (id, e))
raise
return data
class TagRegisterUpdateView(APIView):
def post(self, request):
ids = request.POST.get('tag_ids')
try:
self.rpc['venus/sun/tag/refister_tag/update'](ids=ids).unwrap()
except Exception as e:
error_logger.error(u'配置失败')
raise
return {'msg': '更改成功'}
......@@ -84,6 +84,7 @@ urlpatterns = [
url(r'^tag/list/update$', TagListView.as_view()),
url(r'^tag/create$', TagUpdateOrCreateView.as_view()),
url(r'^tag/detail$', TagUpdateOrCreateView.as_view()),
url(r'^tag/register_show/update$', TagRegisterUpdateView.as_view()),
# 标签类型相关
url(r'^tag/tagtype/list$', TagTypeListView.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