Commit 788c6054 authored by zhongshangwu's avatar zhongshangwu

fix bug

parent 9bc142c6
......@@ -282,7 +282,7 @@ class TagSetDeleteView(APIView):
class TagSetUpdateOrCreateView(APIView):
def post(self, request):
tag_set_id = request.POST.get("id")
tag_set_id = int(request.POST.get("id", 0))
name = request.POST.get("name", "")
tag_ids = json.loads(request.POST.get("tag_ids", '[]'))
......
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