开发者

django-threadedcomments to return number of comments excluding replies

开发者 https://www.devze.com 2023-01-18 09:58 出处:网络
I\'m using {% get_comment_count for OBJECT as CONTEXT_VAR %}: to get the number of comments that an object has. The issue with this is that you can\'t limit it by depth. I want to be able to get fo

I'm using

{% get_comment_count for OBJECT as CONTEXT_VAR %}:

to get the number of comments that an object has. The issue with this is that you can't limit it by depth. I want to be able to get for example the number of comments a specific object has had excluding the replies made to the comments it self.

Any ideas on how to开发者_StackOverflow中文版 achieve this?


Use your own templatetag or count them in the view and pass it to the template.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号