def comments_count(content_object): """ Return the number of comments posted at a target object. You can use this instead of the ``{% get_comment_count for [object] as [varname] %}`` tag. """ return get_comments_for_model(content_object).count()
def comments_count(content_object): """ Return the number of comments posted at a target object. You can use this instead of the ``{% get_comment_count for [object] as [varname] %}`` tag. """ return get_comments_for_model(content_object).count()