[Answer]-Order by average – Django

1👍

The following should give you the answer:

from django.db import Avg

Punctuation.objects.values('pelis_id').annotate(average=Avg('valor'))

Leave a comment