{% load admin_urls %} {% for label, options in extra_object_tools %} {% if options.has_perm %} {{ label }} {% endif %} {% endfor %}