{% load static %} {% for c in table.columns %} {% if c.sortable %} {% else %} {% endif %} {{ c|safe }} {% endfor %}