{% load i18n django_admin_contexts_tags %} {% if app_list %} {% get_contexts_form as contexts_form %} {% if contexts_form %}
{% endif %} {% filter_by_context app_list as filtered_app_list %} {% for app in filtered_app_list %}{% if model.admin_url %} {{ model.name }} {% else %} {{ model.name }} {% endif %} | {% if model.add_url %}{% translate 'Add' %} | {% else %}{% endif %} {% if model.admin_url and show_changelinks %} {% if model.view_only %} | {% translate 'View' %} | {% else %}{% translate 'Change' %} | {% endif %} {% elif show_changelinks %}{% endif %} |
---|
{% translate 'You don’t have permission to view or edit anything.' %}
{% endif %}