Django Filter with Pagination

前端 未结 6 1269
梦谈多话
梦谈多话 2020-12-19 12:47

I\'m attempting to follow the following tutorial for pagination with django filters, but the tutorial seems to be missing something, and i\'m unable to get the pagination to

6条回答
  •  一向
    一向 (楼主)
    2020-12-19 13:19

    I have tested it right now!It works fine for me.Just sharing a portion of the template with a view like the previous answer

          
    {{ filter.form.row_date.label_tag }} {% render_field filter.form.row_date class="form-control" %}
    {{ filter.form.director.label_tag }} {% render_field filter.form.director class="form-control" %}
    {{ filter.form.manager.label_tag }} {% render_field filter.form.manager class="form-control" %}
    {{ filter.form.analyst.label_tag }} {% render_field filter.form.analyst class="form-control" %}
{% for a in users %} {% empty %} {% endfor %}
row_date Director Manager Analyst
{{ a.row_date }} {{ a.director }} {{ a.manager }} {{ a.analyst }} No data
No data
{% block javascript %} {% endblock %}

提交回复
热议问题