Browse Source

Clean up id sets on forum models

Alec Nikolas Reiter 7 years ago
parent
commit
e605393e42
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/forum/models.py

+ 1 - 1
flaskbb/forum/models.py

@@ -255,7 +255,7 @@ class Post(db.Model, CRUDMixin):
                 last_post = second_last_post[1]
                 self.topic.forum.last_post = last_post
                 self.topic.forum.last_post_title = last_post.topic.title
-                self.topic.forum.last_post_user_id = last_post.user_id
+                self.topic.forum.last_post_user = last_post.user
                 self.topic.forum.last_post_username = last_post.username
                 self.topic.forum.last_post_created = last_post.date_created