{% extends "admin/change_list.html" %} {% load i18n admin_urls static admin_list django_admin_groupby %} {% block title %}{% if title %}{{ title }} | {% endif %}{{ site_title|default:_('Django site admin') }}{% endblock %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block date_hierarchy %} {% if cl.grouped_results %} {# Hide date hierarchy when in grouped mode #} {% else %} {{ block.super }} {% endif %} {% endblock %} {% block result_list %} {% if cl.grouped_results %}
{% for field_info in cl.groupby_field_info %} {% endfor %} {% for agg in cl.aggregate_info %} {% endfor %} {% for result in cl.grouped_results %} {% for field in cl.groupby_fields %} {% if field in cl.boolean_fields %} {% elif field in cl.fields_with_choices %} {% else %} {% endif %} {% endfor %} {% for agg in cl.aggregate_info %} {% endfor %} {% endfor %} {% for field_name in cl.groupby_field_names %} {% if forloop.first %} {% else %} {% endif %} {% endfor %} {% for agg in cl.aggregate_info %} {% endfor %}
{% if field_info.sortable %} {% if field_info.sorted %}
{% endif %}
{% else %}
{{ field_info.verbose_name }}
{% endif %}
{% if agg.sortable %} {% if agg.sorted %}
{% endif %}
{% else %}
{{ agg.label }}
{% endif %}
{% if result|get_item:field %} True {% else %} False {% endif %} {{ result|get_item:field|get_display:opts }} {{ result|get_item:field|default:"None" }} {% if agg.operation == 'avg' %} {{ result|get_item:agg.key|floatformat:1 }} {% elif agg.operation == 'post_process' %} {{ result|get_item:agg.key }} {% else %} {{ result|get_item:agg.key }} {% endif %}
{% trans "Total" %} {% if agg.operation == 'count' or agg.operation == 'sum' or agg.is_post_process %} {{ cl.totals|get_item:agg.key }} {% endif %}
{% else %} {{ block.super }} {% endif %} {% endblock %} {% block pagination %} {% if not cl.grouped_results %} {{ block.super }} {% endif %} {% endblock %}