Commit 95cfb5fb authored by 段英荣's avatar 段英荣

modify

parent 5b7e49a7
......@@ -36,10 +36,10 @@ class TagTransfer(object):
res["near_new_topic_num"] = topic_num
res["tag_type"] = -1
tag_type_id = CommunityTagTypeRelation.objects.filter(tag_id=instance.id,is_online=True,is_deleted=False).values_list("tag_type_id")
tag_type_id = CommunityTagTypeRelation.objects.filter(tag_id=instance.id,is_online=True,is_deleted=False).values_list("tag_type_id",flat=True)
if tag_type_id:
res["tag_type"] = tag_type_id
return res
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
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