This way you pick up all positive balances greater than jeff's
absolute balance and all negative balances less than jeff's absolute
balance. This avoids adding a field to your model like 'balance_abs',
which would be just a calculation anyways.
I don't know if this is the cleanest way to do it, but let me know if
it works...
-Justin
spearsear
unread,
Sep 3, 2010, 5:03:57 PM9/3/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I did it in your way, it certainly works.
But I feel this is a little ugly. My query is way more complicated
that the example here so I had to do if a lot.
Justin
unread,
Sep 3, 2010, 7:12:01 PM9/3/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Well, I'm glad it works. Please post, if you want to, a cleaner
solution if you find it!