Open Palaniyappan12 opened 1 year ago
Hi, thanks for your project. I'm working on project, where I need to implement a datatable based on a query. So I implemented this with the help of get_initial_queryset method. The issue is that the data is not rendered correctly, it just returns
???
. I was able to find the reason, when we usevalues()
it returns a Queryset that contains dictionary. Therefore it raises an issue, I could useonly()
but I need to group_by certain fields in that query. So is it possible to implement a datatable with the method get_initial_queryset that returns a query involvingvalues()
?
Did you ever figure out a way to make it work with the use of values()
?
I just modified the get_table_row_id function by implementing if-else conditions to manage dictionary objects. I also encountered problems with sorting and filtering, but I addressed these using a similar approach of conditional statements.
Hi, thanks for your project. I'm working on project, where I need to implement a datatable based on a query. So I implemented this with the help of get_initial_queryset method. The issue is that the data is not rendered correctly, it just returns
???
. I was able to find the reason, when we usevalues()
it returns a Queryset that contains dictionary. Therefore it raises an issue, I could useonly()
but I need to group_by certain fields in that query. So is it possible to implement a datatable with the method get_initial_queryset that returns a query involvingvalues()
?