morlandi / django-ajax-datatable

A Django app which provides the integration of a Django project with the jQuery Javascript library DataTables.net
MIT License
204 stars 64 forks source link

Showing recordsTotal and recordsFiltered as same value #55

Open DChaitanya opened 2 years ago

DChaitanya commented 2 years ago

As i tried to filter records on table, it shows only filtered record count and not actual records count before filtering - http://django-ajax-datatable-demo.brainstorm.it/tracks/

It should as excepted like actual jquery datatable plugin - https://datatables.net/ Showing 1 to N of N entries (filtered from 57 total entries)

https://github.com/morlandi/django-ajax-datatable/blob/7f5e323608e426607af52c3dca9f5413a4c9f9af/ajax_datatable/views.py#L719 https://github.com/morlandi/django-ajax-datatable/blob/7f5e323608e426607af52c3dca9f5413a4c9f9af/ajax_datatable/views.py#L720