{% if form %} {% csrf_token %} {{ form }} {% endif %} {% block message %} {% if related_num > 0 %} {% endif %} {% endblock %}
{% blocktrans count related_num as counter %}There is {{ related_num }} related entry that will also be deleted as it depend upon this item{% plural %}There are {{ related_num }} related entries that will also be deleted as they depend upon this item{% endblocktrans %}:
    {% for name, objs in related.items %}
  • {{ name }}: {% for obj in objs %}{{ obj }}{% if not forloop.last %}, {% endif %}{% endfor %}
  • {% endfor %}
{% blocktrans with verbose_name=verbose_name object=object %}Are you sure you want to delete {{ verbose_name }} {{ object }}?{% endblocktrans %}