{% extends "admin/base_site.html" %} {% load model_names %} {% block content %}
{% csrf_token %} {{ item_formset.management_form }} {% for form in item_formset %} {{ form }} {% endfor %}

Select {% if is_m2m %}up to ten {% model_name_plural child_model %}{% else %}the {% model_name child_model %}{% endif %} to {% if is_removal %}remove from{% else %}add to{% endif %} the {% model_name_plural parent_model %} below:

{% for parent in parent_queryset %} {% endfor %}

The {% if is_m2m %}{% model_name_plural child_model %}{% else %}{% model_name child_model %}{% endif %} will be {% if is_removal %}removed from{% else %}added to{% endif %} the following {% model_name_plural parent_model %}:

{{ parent }}
{% endblock %}