1 2 3 4 5 6 7 8 9 10 11 12 13 14
{% load url from future %} <a class="label {{category}}"> {% if category %} {{ category|title }} {% else %} No category {% endif %} </a> <form method="post" action="{% url 'thread_set_category' mlist_fqdn=mlist.name threadid=threadid %}"> {% csrf_token %} {{ category_form.as_p }} </form>