{% load extra_urls i18n static admin_list admin_urls %} {% for method_name,urlattrs in adminform.model_admin.extra_detail_buttons %} {% if authorized and options.visible%} {% nlless %}
  • {% if original.pk %} {% if icon %}   {% endif %} {{ options.label }} {% else %} {% if not urlsattrs.exclude_if_adding %} {% if icon %}   {% endif %} {{ options.label }} {%endif %} {% endif %}
  • {% endnlless %} {% endif %} {% endfor %}