Compare commits
No commits in common. "aebe09de685cd41f2549336d8ed1c8ae79af0f97" and "e3e38fde6fd4597a76e96044db4a79b600a420f7" have entirely different histories.
aebe09de68
...
e3e38fde6f
|
@ -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(t.thread.comments) for t in self.topics)
|
||||
return sum(len(thread.comments) for thread in self.topics)
|
||||
|
|
Loading…
Reference in New Issue