I have a model called Item, with m2m relation to User ("owner").
For each item, i need to count users who own it. That's easy enough with annotate()
But then i need to calculate ratio between owners of specific gender and total owner count for each item. For example if, 2 males own the item out of 5 users, the ration is 0.4.
What's the best way to do that?