Commit 42453f10 authored by zhanglu's avatar zhanglu

帖子添加虚拟点赞

parent 4f9fabf5
...@@ -248,7 +248,7 @@ class PictorialTopic(models.Model): ...@@ -248,7 +248,7 @@ class PictorialTopic(models.Model):
is_deleted = models.BooleanField(verbose_name=u'是否删除') is_deleted = models.BooleanField(verbose_name=u'是否删除')
class TopicExtra(BaseModel): class TopicExtra(models.Model):
"""帖子相关额外信息""" """帖子相关额外信息"""
class Meta: class Meta:
...@@ -256,5 +256,6 @@ class TopicExtra(BaseModel): ...@@ -256,5 +256,6 @@ class TopicExtra(BaseModel):
app_label = 'community' app_label = 'community'
db_table = 'topic_extra' db_table = 'topic_extra'
id = models.IntegerField(verbose_name=u'ID', primary_key=True)
topic_id = models.IntegerField(verbose_name=u"帖子ID",db_index=True) topic_id = models.IntegerField(verbose_name=u"帖子ID",db_index=True)
virtual_vote_num = models.IntegerField(verbose_name="帖子虚拟点赞") virtual_vote_num = models.IntegerField(verbose_name="帖子虚拟点赞")
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