{% extends "module_base.html" %} {% load static %} {% block title %}Delete Role - {{ role.name }}{% endblock %} {% block content %}

Delete Role: {{ role.name }}

Warning!

You are about to delete the role {{ role.name }}. This action cannot be undone.

The following data will be permanently deleted:

  • Role definition and description
  • All permission assignments for this role
  • Role assignments from all users
Role Information:
Role Name: {{ role.name }}
Description: {{ role.description|default:"-" }}
Assigned Users: {{ role.userrole_set.count }}
Permissions: {{ role.rolepermission_set.count }}
Created: {{ role.created_at|date:"d M Y H:i" }}
Impact Analysis:

{{ role.userrole_set.count }} user(s) will lose this role assignment.
{{ role.rolepermission_set.count }} permission(s) will be removed.

Recommendation:

Consider reassigning affected users to appropriate alternative roles before deletion.

Cancel
{% csrf_token %}
{% endblock %}