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

modify

parent dfc6e360
......@@ -35,13 +35,10 @@ class User(models.Model):
is_shadow = False
is_recommend = False
"""
query_sql = UserExtra.objects.filter(user_id=user_id)
for record in query_sql:
is_recommend = record.is_recommend
is_shadow = record.is_shadow
"""
# 获取该用户最新发帖时间
latest_topic_time_val = -1
......
......@@ -15,7 +15,7 @@ class UserExtra(models.Model):
db_table="user_extra"
id = models.IntegerField(verbose_name="主键ID",primary_key=True)
user_id = models.IntegerField(verbose_name=u"用户ID")
user_id = models.BigIntegerField(verbose_name=u"用户ID")
is_shadow = models.BooleanField(verbose_name=u"是否是马甲账户")
is_online = models.BooleanField(verbose_name=u"是否上线")
is_recommend = models.BooleanField(verbose_name=u"是否推荐")
......
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