Re: Aggregated Expression.

2009-05-07 Thread George Song
On 5/7/2009 10:42 AM, overgroove wrote: > I have the following models: > > Customer > Order > Lineitem > > Customers have orders and orders have lineitems. In lineitems there's > a product price and a product quantity. I would like to be able to, > using django querysets and whatever magic I h

Aggregated Expression.

2009-05-07 Thread overgroove
I have the following models: Customer Order Lineitem Customers have orders and orders have lineitems. In lineitems there's a product price and a product quantity. I would like to be able to, using django querysets and whatever magic I have to do, to annotate the multiplication of price and qua