{% load i18n %} {% comment %} The action buttons of one row (`obj`): `actions` is a list of (action, url) pairs, an action having `name`, `label`, `css_classes`, `attrs`, `confirmation` and, for a link ("view"), `url`. row-actions.js posts a button's data-django-admin-tables-row-action URL. Override with `row_actions_template`. {% endcomment %} {% block row_actions %} {% for action, url in actions %} {% block row_action %} {% if action.url %} {{ action.label }} {% else %} {% endif %} {% endblock row_action %} {% endfor %} {% endblock row_actions %}