##// END OF EJS Templates
Fixed tags counting
neko259 -
r178:3569fa99 default
parent child Browse files
Show More
@@ -168,11 +168,11 b' class Tag(models.Model):'
168 168 return self.get_post_count() == 0
169 169
170 170 def get_post_count(self):
171 posts_with_tag = Post.objects.filter(tag=self)
171 posts_with_tag = Post.objects.get_threads(tag=self)
172 172 return posts_with_tag.count()
173 173
174 174 def get_popularity(self):
175 posts_with_tag = Post.objects.filter(tag=self)
175 posts_with_tag = Post.objects.get_threads(tag=self)
176 176 reply_count = 0
177 177 for post in posts_with_tag:
178 178 reply_count += post.get_reply_count()
General Comments 0
You need to be logged in to leave comments. Login now