1👍
To get the total number of particular vegetable across all buyers you can:
Vegetable.objects.filter(vegetable_name="Carrot").count()
Source:stackexchange.com
1👍
To get the total number of particular vegetable across all buyers you can:
Vegetable.objects.filter(vegetable_name="Carrot").count()