{% load comments %} {% load crispy_forms_tags %} {# Start of Sidebar-right #}
{# sidebar header #}
Discussion
{# sidebar content #}
{# Comment Thread #} {% get_comment_list for calculation as comment_list %}
{% for comment in comment_list %}
{{ comment.user_name }} {{ comment.submit_date|date:"P m-d-Y" }}
{{ comment.comment }}

{% endfor %} {# Comment Form #} {% if user.is_authenticated %} {% get_comment_form for calculation as form %}
{% csrf_token %} {# form.comment --> but wit custom rendering #} {# form.honeypot BUG: for some reason adding this causes the form submission to fail #} {{ form.content_type }} {{ form.object_pk }} {{ form.timestamp }} {{ form.security_hash }}
{% else %}

Please log in to leave a comment.

{% endif %}
{# Toggle sidebar & Search buttons #}