{% load permissions_widget_tags i18n %} {% for permission_type in permission_types %} {% endfor %} {% for row in table %} {% ifchanged row.app %} {% endifchanged %} {% ifchanged row.model %} {% for permission_type in permission_types %} {% with row.permissions|get_item:permission_type as permission %} {% endwith %} {% endfor %} {% endifchanged %} {% endfor %} {% if permission_types_custom %} {% endif %} {% for row in table %} {% ifchanged row.model %} {% with permission_types_custom|get_for_model:row as permissions %} {% if permissions %} {% for permission in permissions %} {% endfor %} {% endif %} {% endwith %} {% endifchanged %} {% endfor %}

Standard permissions

{% trans 'App & Model' %} {{ permission_type|capfirst }}
{{ row.app|capfirst }}
{{ row.model|capfirst }} {% if permission %} {% endif %}

Custom permissions

{{ row.app|capfirst }} | {{ row.model|capfirst }}
{{ permission.name }}