{% extends "testapp/base.html" %} {% block template_name %}testapp/collection.html{% endblock %} {% block content %}
{% if collection.is_empty %}

You have not added any guests

Each guest is its own run through the item wizard, registered before the wizard starts — which is what lets a half-finished one still have a row.

{% else %}

You have added {{ collection.count }} guest{{ collection.count|pluralize }}

{% endif %} {% comment %} The view reads one POST field, so two submit buttons carry the answer and the question needs no widget of its own. The errors still render: a POST that names neither is a malformed request rather than an unanswered question, and should say so. {% endcomment %}
{% csrf_token %} {{ form.errors.add_another }} {% if not collection.is_empty %} {% endif %}
{% endblock %}