Correction d'un bug
This commit is contained in:
parent
e0dc6944f7
commit
c5d9b39f06
|
@ -37,4 +37,4 @@ class Forum(db.Model):
|
|||
|
||||
def post_count(self):
|
||||
"""Number of posts in every topic of the forum, without subforums."""
|
||||
return sum(len(thread.comments) for thread in self.topics)
|
||||
return sum(len(t.thread.comments) for t in self.topics)
|
||||
|
|
Loading…
Reference in New Issue