{% extends 'delete_obj.html' %} {% block del_title %} Are you sure you want to delete category '{{ category.name }}'? {% endblock %} {% block del_body %} {% if category.children.all|length > 0 %}
This category contains {{ category.children.all|length }} child categories.
If this category is deleted, these child categories will be moved to
{% if category.parent %}
the '{{ category.parent.name }}' category.
{% else %}
the top level 'Parts' category.
{% endif %}
This category contains {{ category.parts.all|length }} parts.
{% if category.parent %}
If this category is deleted, these parts will be moved to the parent category '{{ category.parent.pathstring }}'
{% else %}
If this category is deleted, these parts will be moved to the top-level category 'Parts'
{% endif %}