Commit 5ebbabdc authored by 段英荣's avatar 段英荣

modify

parent 0169cd25
......@@ -79,9 +79,12 @@ class Topic(models.Model):
def get_tag_name_list(self,tag_id_list):
try:
tag_name_list = list()
query_results = Tag.objects.filter(id__in=tag_id_list).values_list("name",flat=True)
for item in query_results:
tag_name_list.append(item)
return query_results
return tag_name_list
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return []
......
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