Surprisingly, I could not find a way to make the group on request.
I have a set of queries qs, and I'm trying to group by some_prop.val, given that it qsexcludes entries where some_propthere are None.
Let's say that the values [1, 2, 3], then I would get the following result:
{1: entries1, 2: entries2, 3: entries3}
Does Django ORM provide any function for grouping such results?
source
share