Re: aggregate formatting

2009-05-06 Thread mamco
perfect. Thank you George. On May 6, 2:42 pm, George Song wrote: > {{{ > return '%s' > %Cheque.objects.aggregate(cheque_sum=Sum('amount'))['cheque_sum'] > > }}} --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: aggregate formatting

2009-05-06 Thread George Song
On 5/6/2009 10:27 AM, mamco wrote: > I have two models "Deposit" and "Cheque". I'm trying to show total > the amount of cheques in the admin area using the method name in the > list_display. It seems to work (although I think the documentation > suggests it may not because it requires the lookup

aggregate formatting

2009-05-06 Thread mamco
I have two models "Deposit" and "Cheque". I'm trying to show total the amount of cheques in the admin area using the method name in the list_display. It seems to work (although I think the documentation suggests it may not because it requires the lookup for each row shown). I've got this in the