{% extends "base.html" %} {% load render_table from django_tables2 %} {% load django_tables2 crispy_forms_tags %} {% load model_name %} {% block heading %}{% include "heading.html" %}{%endblock%} {% block content %} {% if object_list %} {% if filter %}
{% crispy filter.form 'bootstrap4' %}
{% endif %} {% render_table table %}

{{ page_obj.paginator.count }} objects found

{% else %} {% if request.GET.filter %}

No objects match your filter. Reset filter

{% else %}

There are no objects in the list. Add one now!

{% endif %} {% endif %} {% endblock %}