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

Django simple history - model #78

Open LukeWebbJacobs opened 2 years ago

LukeWebbJacobs commented 2 years ago

Very vague report/query sorry. Using: https://django-simple-history.readthedocs.io/en/latest/

A table based on one of these models, all works except search...

Any ideas what could cause "Request to Search value in " to be correct, but data tx to be incorrect. image

I guess this line is failing in utils.js: column.search(value).draw();

As when I added a print of the request inside dispatch of AjaxDatatableView.py, there are no search params being sent. e.g.

print (request.POST)

<QueryDict: {'draw': ['2'], 'columns[0][data]': ['adh_reference'], 'columns[0][name]': ['adh_reference'], 'columns[0][searchable]': ['true'], 'columns[0][orderable]': ['true'], 'columns[0][search][value]': [''] ................