Commit 0169cd25 authored by 段英荣's avatar 段英荣

modify

parent cba9438c
......@@ -79,7 +79,8 @@ class Topic(models.Model):
def get_tag_name_list(self,tag_id_list):
try:
query_results = Tag.objects.filter(id__in=tag_id_list).values_list("name")
query_results = Tag.objects.filter(id__in=tag_id_list).values_list("name",flat=True)
return query_results
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