Commit c3d7f0a7 authored by 段英荣's avatar 段英荣

Merge branch 'list_data' into 'master'

data_list

See merge request alpha/physical!382
parents 16b74f47 fe9f58ae
...@@ -203,7 +203,7 @@ class Topic(models.Model): ...@@ -203,7 +203,7 @@ class Topic(models.Model):
tag_id_list = TopicTag.objects.using(settings.SLAVE_DB_NAME).filter(topic_id=self.id, tag_id_list = TopicTag.objects.using(settings.SLAVE_DB_NAME).filter(topic_id=self.id,
is_collection=1).values_list("tag_id", is_collection=1).values_list("tag_id",
flat=True) flat=True)
return tag_id_list return list(tag_id_list)
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return [] 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