1👍
I think you need
from django.db.models import Sum
Product.objects.filter(id=product_id).aggregate(Sum('attribute__price_update'))
Source:stackexchange.com
1👍
I think you need
from django.db.models import Sum
Product.objects.filter(id=product_id).aggregate(Sum('attribute__price_update'))