{% extends "admin/base_site.html" %} {% load i18n %} {% block content %}

Role Setup Wizard

This wizard creates or updates recommended Django Groups used as business roles. It does not run automatically during migrations. Use it after creating a new database and running migrations for all installed apps.

You can find this page from: Django Admin → Accounts → Role Setup Wizard or from the Roles page.

{% csrf_token %}

Options

Leave unchecked to only add missing permissions while preserving any existing custom permissions.

Preview

{% for role in role_preview %}

{{ role.name }}

{{ role.description }}

{% if role.exists %}

Status: Existing role

{% else %}

Status: Will be created

{% endif %}

Permissions to assign:

{% if role.permission_codes %} {% else %}

No permissions resolved.

{% endif %} {% if role.missing_permission_codes %}

Missing permissions:

Missing permissions usually mean migrations for the feature app have not been run yet.

{% endif %} {% if role.will_add_codes %}

Will add:

{% endif %}
{% endfor %}
{% endblock %}