{% load static %} {% if object.comments.all %}

Comments

{% for comment in object.comments.all %}
{{comment.get_comment | safe | linebreaks}}
{{comment.date_published}} {{comment.user_object}} {% if comment.user_object.username == user.get_username %} {% endif %}

{% endfor %}
{% endif %} {% if user.is_authenticated and object.is_commentable %} Add comment {% endif %}