{% extends "admin/base_site.html" %} {% load i18n l10n admin_urls static %}{% comment %} "Delete selected" confirmation: how many rows, a sample of them, and what else goes with them, instead of every row and every related row. A model with soft delete says the rows can be restored. Override this template, or set delete_selected_confirmation_template on the admin class. {% endcomment %} {% block extrahead %}{{ block.super }} {{ media }} {% endblock %} {% block extrastyle %}{{ block.super }} {% include "karni_admin/includes/page_styles.html" %} {% endblock %} {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation delete-selected-confirmation{% endblock %} {% block content %}
{% translate "Deleting them would also delete related rows, and your account may not delete these:" %}
{% translate "Other rows depend on them, and those must be deleted first:" %}
{% if karni_soft %}{% translate "They move to Deleted and can be restored from the list." %}{% else %}{% translate "This cannot be undone." %}{% endif %}
{% if karni_soft %}{% translate "This is a soft delete: rows that refer to them are kept as they are, and their links to them keep working." %}
{% endif %}{% blocktranslate with more=total|add:"-10" %}and {{ more }} more.{% endblocktranslate %}
{% endif %} {% if not karni_soft %}{% for name, number in model_count %}{% if forloop.first %}{% translate "Counting what goes with them:" %} {% endif %}{{ number }} {{ name }}{% if not forloop.last %}, {% endif %}{% if forloop.last %}.
{% endif %}{% endfor %}{% endif %} {% endwith %} {% endif %}