{% extends "admin/change_form.html" %} {% load static %} {% block extrahead %} {{ block.super }} {% endblock %} {% block object-tools-items %} {% for tool in objectactions %} {% if tool.custom_attrs.show_button|default_if_none:True %}
  • {% if tool.custom_attrs.use_form|default_if_none:True %}
    {% csrf_token %}
    {% else %} {{ tool.label|capfirst }} {% endif %}
  • {% endif %} {% endfor %} {{ block.super }} {% endblock %}