I have three models, simplified for the example:
class Customer(models.Model): email = models.CharField(max_length=128) class Order(models.Model): custo
Similar to: https://stackoverflow.com/a/19888120/1344647
from django.db.models import Sum q = Task.objects.filter(your-filter-here).annotate(total=Sum('progress', field="progress*estimated_days"))
Edited: Thanks to @Max, using annotate instead aggregated.