Closed jonathan88n closed 5 years ago
When changing Number of Comments from: Comments: {{ post.comments.count }} to this: Comments: {{ post.approved_comments.count }}
No comments are displayed even though there is at least 1 comment publish on post. Before: After:
My repo: https://github.com/jonathan88n/aznasalon-blog
I put: def approved_comments(self): return self.comments.filter(approved_comment=True)
inside of Comment Model instead of Post Model, works fine now.
When changing Number of Comments from: Comments: {{ post.comments.count }} to this: Comments: {{ post.approved_comments.count }}
No comments are displayed even though there is at least 1 comment publish on post. Before:
After:
![image](https://user-images.githubusercontent.com/957397/46490313-af6e4100-c7d5-11e8-8f2f-a3867f90232b.png)
My repo: https://github.com/jonathan88n/aznasalon-blog