{% extends "admin/base_site.html" %} {% block title %}{{ title }}{% endblock %} {% block content %}
{% if not content_types %}

No bound models whose policies you may change — nothing to explore.

{% endif %}

Who is allowed to …?

{% csrf_token %} {{ who_form.as_p }}
{% if who_result %} {% if who_result.error %}

{{ who_result.error }}

{% else %}

{{ who_result.entry.perm }} ({{ who_result.entry.name }}) on {{ who_result.content_type.app_label }}.{{ who_result.content_type.model }} {% if who_result.object_pk %}object {{ who_result.object_pk }}{% else %}(model-level){% endif %} — action {{ who_result.entry.action|default:"—" }}, allowed for {{ who_result.allowed_count }} of {{ who_result.rows|length }} users.

{% for row in who_result.rows %} {% endfor %}
UserAllowedNote
{{ row.label }} {% if row.cell.allowed is None %}n/a{% elif row.cell.allowed %}yes{% else %}no{% endif %} {{ row.cell.note }}
{% endif %} {% endif %}

What is a user allowed to do?

{% csrf_token %} {{ what_form.as_p }}
{% if what_result %}

Permissions of {{ what_result.label }} {% if what_result.object_pk %}on object {{ what_result.object_pk }}{% else %}(model-level; object-bound rules may deny without an object){% endif %}

{% for entry in what_result.models %}

{{ entry.content_type.app_label }}.{{ entry.content_type.model }}

{% for cell in entry.cells %} {% endfor %}
PermissionActionAllowedNote
{{ cell.perm }}
{{ cell.name }}
{{ cell.action|default:"—" }} {% if cell.allowed is None %}n/a{% elif cell.allowed %}yes{% else %}no{% endif %} {{ cell.note }}
{% empty %}

No models to show.

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