Datatable 1.10 new api compatibility
Issue #4
resolved
Hi,
It would be great to be able to use the new datatable api which appeared in 1.10.
Fro example this part :
ret = {'sEcho': int(request.REQUEST.get('sEcho', 0)),
'iTotalRecords': total_records,
'iTotalDisplayRecords': total_display_records,
'aaData': aaData
}
Should be like this :
ret = { 'draw': int(request.REQUEST.get('draw', 0)), 'recordsTotal': total_records, 'recordsFiltered': total_display_records, 'data': aaData }
There are probably other stuff to fix.
Thanks !
Comments (2)
-
repo owner -
repo owner - changed status to resolved
- Log in to comment
Thanks for the info. I was not yet aware of new version of datatables. Pull requests welcome :)