[Answer]-Group football result by score

1👍

use:

from django.db.models import Count
CrowdResult.objects.values('match', 'home_goals', 'away_goals').order_by().annotate(Count('match'), Count('home_goals'), Count('away_goals'))

Leave a comment