{% load i18n django_admin_contexts_tags %} {% if app_list %} {% get_contexts_form as contexts_form %} {% if contexts_form %}
{{ contexts_form }}
{% endif %} {% filter_by_context app_list as filtered_app_list %} {% for app in filtered_app_list %}
{% for model in app.models %} {% with model_name=model.object_name|lower %} {% if model.add_url %} {% else %} {% endif %} {% if model.admin_url and show_changelinks %} {% if model.view_only %} {% else %} {% endif %} {% elif show_changelinks %} {% endif %} {% endwith %} {% endfor %}
{{ app.name }}
{% if model.admin_url %} {{ model.name }} {% else %} {{ model.name }} {% endif %} {% translate 'Add' %}{% translate 'View' %}{% translate 'Change' %}
{% endfor %} {% else %}

{% translate 'You don’t have permission to view or edit anything.' %}

{% endif %}