2๐
โ
I hope this will give you the expected result,
result = Exercise.objects.filter(
workout__member=request.user.member
).aggregate(
total=Sum(F('reps') * F('series') * F('weight'))
)
Source:stackexchange.com