John M wrote:
Sounds like two queries to me, sum all the refunds and then subtract
them from all the non-refund amounts.  does that work for ya?

Not really, that requires two queries. I know this can be done in one query in SQL, just wondering how to express that in Django ORM speak...

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
           - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to