Django Group по дате из поля DateTime
Transaction.objects.values('created_at__date').annotate(count=Count('id')).values('created_at__date', 'count').order_by('created_at__date')
Thoughtful Tapir