{% if not has_permission('permission', 'update', instance) and not has_permission('permission', 'delete', instance) %} {% else %} [ {% include "permission/_action_edit.html" %} | {% include "permission/_action_delete.html" %} ] {% endif %}