Commit 65a97f43 authored by 段英荣's avatar 段英荣

modify

parent 95cfb5fb
...@@ -35,10 +35,12 @@ class TagTransfer(object): ...@@ -35,10 +35,12 @@ class TagTransfer(object):
res["near_new_topic_num"] = topic_num res["near_new_topic_num"] = topic_num
res["tag_type"] = -1 tag_type_sql_list = CommunityTagTypeRelation.objects.filter(tag_id=instance.id,is_online=True,is_deleted=False).values_list("tag_type_id",flat=True)
tag_type_id = CommunityTagTypeRelation.objects.filter(tag_id=instance.id,is_online=True,is_deleted=False).values_list("tag_type_id",flat=True) tag_type_list = list()
if tag_type_id: for tag_type_id in tag_type_sql_list:
res["tag_type"] = tag_type_id tag_type_list.append(tag_type_id)
res["tag_type"] = tag_type_list
return res return res
except: except:
......
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