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

modify

parent 95530d63
......@@ -46,7 +46,7 @@ class User(models.Model):
def get_latest_topic_time_val(self):
# 获取该用户最新发帖时间
latest_topic_time_val = -1
topic_records = Topic.objects.filter(user_id__in=self.user_id).order_by(self.update_time)
topic_records = Topic.objects.filter(user_id=self.user_id).order_by(self.update_time)
check_index = 0
for record in topic_records:
topic_update_time = record.update_time
......
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