{% extends "layouts/base.html" %} {% load static get_attribute %} {% block extrastyle %} {% endblock extrastyle %} {% block content %}
{% csrf_token %}
{% csrf_token %}

Filters

{% if filter_instance %} {% for filter_data in filter_instance %}
X
{% endfor %} {% endif %}
Zero Configuration
DataTables has most features enabled by default, so all you need to do to use it with your own tables is to call the construction function.
{% for field in db_field_names %} {% endfor %} {% for sale in sales %} {% for field_name in db_field_names %} {% endfor %} {% if request.user.is_authenticated %} {% else %} {% endif %} {% endfor %}
{{ field }}
{{ sale|getattribute:field_name }}
{% if sales.has_other_pages %} {% endif %}
{% endblock content %} {% block extra_js %} {% endblock extra_js %}