Commit c563650e authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'test'

fix batch creat topic is_online

See merge request alpha/saturn!14
parents edd72e77 83c603c1
......@@ -15,6 +15,7 @@ class CreateTopicForBatch(BaseView):
user_id = request.POST.get("user_id", 0)
card_level = request.POST.get("card_level")
tag_id = request.POST.get("tag_id")
is_online = request.POST.get("is_online", 0)
topic_list = json.loads(request.POST.get("topic_list", '[]'))
if not user_id:
......@@ -49,6 +50,7 @@ class CreateTopicForBatch(BaseView):
item["user_id"] = user_id
item["card_level"] = card_level
item["tag_id"] = tag_id
item["is_online"] = is_online
check_info = Sensitive.check(tag_names)
tags = [tag_name for tag_name, succ in check_info.items() if not succ]
......
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