3👍
I don’t think that makes any sense. What you want is probably this:
Product.objects.annotate(user_count=Count('user'))
Source:stackexchange.com
3👍
I don’t think that makes any sense. What you want is probably this:
Product.objects.annotate(user_count=Count('user'))