{% extends "admin_extra_buttons/action_page.html" %}{% load static smart i18n %} {% block content_title %}

{{ original }}

{% endblock %} {% block content %} {% if not linked and not empty %}
{% trans "No linked objects found" %}
{% else %} {% for e in linked %}
{% url admin_site.name|add:e.link as changelist_url %}

{{ e.related_name }} ({{ e.field_name }}) | {{ e.count }} records {% if changelist_url %} goto {% endif %}

{% for row in e.data %} {% endfor %}
{% get_admin_href row 'pk' %} {{ row }}
{% endfor %} {% if show_empty %}

Empty Relationships

{% endif %} {% endif %} {% endblock content %} {% block footer %} {% endblock %}