I went through a lot of links and sites , but i can't find the solution for my problem anywhere. So at last i came here .
My problem is that, I want to use the group by clause with the filter query.
i have found this
How to query as GROUP BY in django?
for objects.all() . But could not find anything for objects.filter()
Here is my query
query =Kicthen.objects.filter( cabinets='1').query
query.group_by = ['style_id']
results = QuerySet(query=query, model=Kicthen)
But its return nothing.
I don't want to use any annotate and distinct with it