django aggregate sum?

I’m not understanding how you’re obtaining those results from the data you’ve provided.

Specifically, this result -

I don’t see how you get this from:

[emphasis added]

Was this just a typo?

Assuming that that is a typo, you’re looking for something like:
Product.objects.values('name', 'id_prod', 'price').annotate(total=Sum('quantity'))