{% extends "admin/change_list.html" %} {% load i18n admin_urls static admin_list %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block content %}
{% block object-tools %} {{ block.super }} {% endblock %} {% if cl.formset and cl.formset.errors %}

{% if cl.formset.total_error_count == 1 %}{% translate "Please correct the error below." %}{% else %}{% translate "Please correct the errors below." %}{% endif %}

{{ cl.formset.non_form_errors }} {% endif %}
{% block search %}{{ block.super }}{% endblock %} {% block date_hierarchy %}{{ block.super }}{% endblock %}
{% csrf_token %} {% if cl.formset %}
{{ cl.formset.management_form }}
{% endif %} {% block result_list %} {{ block.super }} {% endblock %} {% block pagination %}{{ block.super }}{% endblock %}
{% block filters %} {{ block.super }} {% endblock %}
{% block action_buttons %} {% if has_add_permission or has_change_permission %}
{% csrf_token %} {% if has_add_permission %}{% endif %} {% if has_change_permission %}{% endif %}
{% endif %} {% endblock %}
{% endblock %}