On Fri, Aug 5, 2011 at 1:49 PM, nixlists <nixmli...@gmail.com> wrote: > I need a view where for every row returned from Claim I make a > calculation based on quantity from the Claim, rebate_pct and wac. Is > it possible to write a model method that would access these fields > from the other tables?
If I was in your shoes, I'd use Claim.objects.raw() and just write a raw SQL query (see http://django.me/raw). Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.