{% if not pivot_configured %}
Select at least one row field and one value field in the display options to configure the pivot table.
{% else %}
{% for header_row in pivot_result.header_rows %} {% if forloop.first %} {% endif %} {% for header in header_row %} {% endfor %} {% if forloop.first and pivot_show_row_totals %} {% for value_header in pivot_result.value_headers %} {% endfor %} {% endif %} {% endfor %} {% for row in pivot_result.rows %} {% for value in row.cells %} {% endfor %} {% if pivot_show_row_totals %} {% for value in row.totals %} {% endfor %} {% endif %} {% empty %} {% endfor %} {% if pivot_show_column_totals and pivot_result.rows %} {% for value in pivot_result.column_totals %} {% endfor %} {% if pivot_show_row_totals %} {% for value in pivot_result.grand_totals %} {% endfor %} {% endif %} {% endif %}
Rows {{ header.label }} Total {{ value_header }}
{% if row.has_children %} {% else %} {% endif %} {{ row.label }} {{ value|default_if_none:"—" }} {{ value|default_if_none:"—" }}
No records found.
Column totals {{ value|default_if_none:"—" }} {{ value|default_if_none:"—" }}
{% endif %}