Re: Problem with adding multiple aggregates to clause with join

2009-10-06 Thread Russell Keith-Magee
On Wed, Oct 7, 2009 at 1:13 PM, Paddy Joy wrote: > > Can anyone help out with the following aggregation clause? I have an > invoice and invoice_item models as shown. > > class Invoice(models.Model): > >    customer =  models.ForeignKey(Customer) >    payments_received = models.FloatField(default=

Problem with adding multiple aggregates to clause with join

2009-10-06 Thread Paddy Joy
Can anyone help out with the following aggregation clause? I have an invoice and invoice_item models as shown. class Invoice(models.Model): customer = models.ForeignKey(Customer) payments_received = models.FloatField(default=0) class Invoice_Item(models.Model): invoice = models.F