{% extends "admin/base_site.html" %} {% load i18n %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

{% blocktranslate %}This diagram is rendered with Graphviz and reflects the models registered in the {{ app_verbose_name }} admin group, including their relationships.{% endblocktranslate %}

{% if graph_svg %}
{% translate 'Download PDF' %}
{% endif %}
{% if graph_svg %}
{{ graph_svg|safe }}
{% else %}

{{ graph_error|default:_('Unable to render the diagram. Check the server logs for details.') }}

{% endif %}
{% if models %}

{% translate 'Included models' %}

{% endif %} {# Retain the DOT source for debugging or external tooling if needed. #} {{ graph_source|json_script:"model-graph-data" }} {% if graph_svg %} {% endif %} {% endblock %}