umesh-krishna / django_serverside_datatable

Server-side Datatable with Django
MIT License
26 stars 8 forks source link

Use .get when retrieving from MultiValueDict #15

Closed anson0949 closed 1 year ago

anson0949 commented 2 years ago

https://stackoverflow.com/questions/5895588/django-multivaluedictkeyerror-error-how-do-i-deal-with-it, set the default so it won't error if the parameter isn't passed through by DataTables

https://github.com/umesh-krishna/django_serverside_datatable/blob/c37277125f373081627b0225e900141bb712797d/django_serverside_datatable/datatable.py#L101

umesh-krishna commented 1 year ago

DataTables JavaScript library typically passes the iDisplayStart parameter when the serverSide option is set to true, which specifies the starting point of the data to be displayed in the table. However, if you believe this is not the case, please feel free to reopen the issue