{% extends "paxalia/base.html" %} {% load static i18n %} {% block title %}{% trans "Statistics" %} · {{ definition.verbose_name }} · {% trans "Paxalia Admin" %}{% endblock %} {% block page_title %}{{ definition.verbose_name }} {% trans "Statistics" %}{% endblock %} {% block page_subtitle %}{% trans "Bounded aggregates from the registered ModelAdmin queryset" %}{% endblock %} {% block extra_css %}{% endblock %} {% block dashboard_content %}
{{ definition.label }}

{% trans "Statistics" %}

{% trans "Bounded model-level aggregates based on the registered Django queryset." %}

{% trans "Total" %}{{ stats.total }}{% trans "visible records" %}
{% trans "Created today" %}{% if stats.created_today is not None %}{{ stats.created_today }}{% else %}—{% endif %}{% if stats.timestamp_field %}{{ stats.timestamp_field }}{% else %}{% trans "Not detected" %}{% endif %}
{% trans "Updated today" %}{% if stats.updated_today is not None %}{{ stats.updated_today }}{% else %}—{% endif %}{% if stats.updated_field %}{{ stats.updated_field }}{% else %}{% trans "Not detected" %}{% endif %}
{% trans "Relations" %}{{ stats.related_fields }}{% trans "relationship fields" %}
{% if stats.choice_breakdowns %}
{% trans "Choices" %}

{% trans "Field distributions" %}

{% for breakdown in stats.choice_breakdowns %}

{{ breakdown.label }}

{% for row in breakdown.rows %}
{% if row.value %}{{ row.value }}{% else %}{% trans "Empty" %}{% endif %}{{ row.count }}
{% endfor %}
{% endfor %}
{% else %}

{% trans "No choice distributions available" %}

{% trans "This model does not expose bounded choice fields for the statistics view." %}

{% endif %}
{% endblock %}