Commit b74db2b8 authored by haowang's avatar haowang

add pictorial tag ids

parent 5a734e89
...@@ -25,6 +25,7 @@ class CreateTopicForBatch(BaseView): ...@@ -25,6 +25,7 @@ class CreateTopicForBatch(BaseView):
is_online = request.POST.get("is_online", 0) is_online = request.POST.get("is_online", 0)
platform = int(request.POST.get("platform")) platform = int(request.POST.get("platform"))
topic_list = json.loads(request.POST.get("topic_list", '[]')) topic_list = json.loads(request.POST.get("topic_list", '[]'))
pictorial_tag_ids = json.loads(request.POST.get("tag_ids", '[]'))
if not user_id: if not user_id:
return self.parameter_invalid_response() return self.parameter_invalid_response()
...@@ -66,6 +67,7 @@ class CreateTopicForBatch(BaseView): ...@@ -66,6 +67,7 @@ class CreateTopicForBatch(BaseView):
item["card_level"] = card_level item["card_level"] = card_level
item["tag_id"] = tag_id if tag_id else None item["tag_id"] = tag_id if tag_id else None
item["is_online"] = is_online item["is_online"] = is_online
item["pictorial_tag_ids"] = pictorial_tag_ids
if item.get("location") and item.get("location").get("name"): if item.get("location") and item.get("location").get("name"):
_tag_error, _location_tag_data = self.call_rpc( _tag_error, _location_tag_data = self.call_rpc(
"venus/community/tag/batch_create_tag_by_name", "venus/community/tag/batch_create_tag_by_name",
......
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