{% load django_tables2 %} {% if table.show_header %} {% for column in table.columns %} {% if column.orderable %} {{ column.header }} {% else %} {{ column.header }} {% endif %} {% endfor %} {% endif %} {% for row in table.page.object_list|default:table.rows %} {% for column, cell in row.items %} {{ cell }} {% endfor %} {% empty %} {% if table.empty_text %} — {{ table.empty_text }} — {% endif %} {% endfor %} {% if table.has_footer %} {% for column in table.columns %} {{ column.footer }} {% endfor %} {% endif %}