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
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 use values() it returns a Queryset that contains dictionary. Therefore it raises an issue, I could use only() 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 involving values()?
The text was updated successfully, but these errors were encountered:
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 use values() it returns a Queryset that contains dictionary. Therefore it raises an issue, I could use only() 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 involving values()?
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()
?The text was updated successfully, but these errors were encountered: