You are about to delete {{ object }}.
{% if protected_objects %}
This object cannot be deleted because protected related objects still reference it.
{% else %}
This will delete {{ total_objects }} object{{ total_objects|pluralize }} in total, including related records.
{% endif %}
{% if related_objects %}
Related objects that would be deleted:
{% for related in related_objects %}
{{ related.model_name }}: {{ related.count }}
{% for related_object in related.objects %}
- {{ related_object }}
{% endfor %}
{% endfor %}
{% endif %}
{% if protected_objects %}
Protected related objects:
{% for protected_object in protected_objects %}
- {{ protected_object }}
{% endfor %}
{% endif %}
{% if not protected_objects %}
{% endif %}