{% extends "layouts/base.html" %} {% load i18n admin_urls static %} {% block extrahead %} {{ block.super }} {{ media }} {% endblock %} {#{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }}#} {# delete-confirmation{% endblock %}#} {% if not is_popup %} {% block breadcrumbs %}
{% endblock %} {% endif %} {% block content %}
{% if perms_lacking %}

{% blocktrans with escaped_object=object %} Deleting the {{ object_name }} '{{ escaped_object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects: {% endblocktrans %}


    {% for obj in perms_lacking %}
  • {{ obj }}
  • {% endfor %}
{% elif protected %}

{% blocktrans with escaped_object=object %} Deleting the {{ object_name }} ' {{ escaped_object }}' would require deleting the following protected related objects: {% endblocktrans %}


    {% for obj in protected %}
  • {{ obj }}
  • {% endfor %}
{% else %}

{% blocktrans with escaped_object=object %} Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted: {% endblocktrans %}

{% endif %}
{% if not perms_lacking and not protected %} {% include "admin/includes/object_delete_summary.html" %}

{% trans "Objects" %}

    {{ deleted_objects|unordered_list }}
{% csrf_token %}
{% if is_popup %} {% endif %} {% if to_field %} {% endif %} {% trans "No, take me back" %}
{% endif %}
{% endblock %}