Commit fb7029a9 authored by Davve's avatar Davve

标签变为小写

parent ff72e060
......@@ -58,7 +58,7 @@ class TagUpdateOrCreateView(APIView):
up_tags = list(set(map(lambda x: x.split(":")[0], json.loads((request.POST.get('up_tags', '[]'))))))
tagtypes = list(set(map(lambda x: x.split(":")[0], json.loads((request.POST.get('tagtypes', '[]'))))))
data = {
'name': request.POST.get('name'),
'name': request.POST.get('name').lower(),
'description': request.POST.get('description'),
'down_tags': down_tags,
'up_tags': up_tags,
......
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