开发者

django-threadedcomments to return number of comments excluding replies

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜