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
It does not matter what I do with the order_by and distinct it will always fail.
I saw that it fails inside get_context_data() function of BaseDatatableView class the line:
self.ordering(qs)
Somehow I made it work by reimplementing the ordering method with the same code but changing the way the request params are retrieved. For example from:
request.REQUEST.get('iSortCol_%s'%i)
to
request.GET.get('iSortCol_%s'%i)
Seems like I'm missing something else but that's what I found
The text was updated successfully, but these errors were encountered:
I have this code in my DataTableView implementation:
I get this error:
It does not matter what I do with the order_by and distinct it will always fail.
I saw that it fails inside get_context_data() function of BaseDatatableView class the line:
Somehow I made it work by reimplementing the ordering method with the same code but changing the way the request params are retrieved. For example from:
to
Seems like I'm missing something else but that's what I found
The text was updated successfully, but these errors were encountered: