[Django]-Django generate group by different than id

3👍

I don’t think that makes any sense. What you want is probably this:

Product.objects.annotate(user_count=Count('user'))
👤Selcuk

Leave a comment