You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I use datatables with a column of checkboxes in the front-end for selection. During a request, this column is set as empty strings. When drf-datatables encounters an empty string, it breaks out and returns no fields which in turn breaks search and ordering.
viseshrp
changed the title
Using a null/empty column in the Datatables front-end breaks search and ordering in the API
Using a null/empty column in the Datatables front-end breaks search and ordering in the REST API
Oct 11, 2019
Sometimes I use datatables with a column of checkboxes in the front-end for selection. During a request, this column is set as empty strings. When drf-datatables encounters an empty string, it breaks out and returns no fields which in turn breaks search and ordering.
Example: A dummy column like this:
will result in params like:
Because of this line: any column like the above will result in an empty list of fields which will break search and ordering.
The text was updated successfully, but these errors were encountered: