{% load custom_tags %} {% get_comment_form as comment_form %}
-{% allcomments object=object as comments %}

Add Comment

{% csrf_token %} {{ comment_form.as_div }}
{% with comments.count as total_comments %}

{{ total_comments }} comment{{ total_comments|pluralize }}

{% endwith %}
{% if not comments %} No comments yet {% else %} {% for comment in comments %} {% include 'comment.html' with comment=comment replyobject=object %} {% endfor %} {% endif %}