[Fixed]-Is it possible access an attribute of another model via queryset?

1👍

You can do

from django.db.models import Avg

candidate = get_object_or_404(Candidate, pk=pk)
average = Evaluation.objects.filter(candidate= candidate).aggregate(Avg('score'))['score__avg']

Leave a comment