{{ search.constraint_formset.management_form }}
{{ search.model_selection_form.model.errors }} {{ search.model_selection_form.model.label_tag }}:
{{ search.model_selection_form.model }}
{% for form in search.constraint_formset %}
{% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
{# This has a span so that the elements can be hidden via jquery #} {% if form.type.errors %}{{ form.type.errors }}{% endif %} {{ form.type.label_tag }}:
{{ form.type }}
 
{% if form.field.errors %}{{ form.field.errors }}{% endif %} {{ form.field.label_tag }}:
{{ form.field }}
{% if form.operator.errors %}{{ form.operator.errors }}{% endif %} {{ form.operator.label_tag }}:
{{ form.operator }}
{% with operator=form.operator.value %}
 
{% endwith %} {# Space for dynamic formset.js 'remove' link #}
 
{% endfor %}