Sales.objects.extra(select={
'grand_total': "cost_foo_1 + cost_foo_2 + cost_foo_3"
}, where=['id=%s'], params=[self.pk])[0].grand_total
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment