views:

58

answers:

1

is there a way l can compare two columns | fields in django like

Invoice.objects.filter(amountdue_lt=invoiceamount)

where amountdue and invoiceamount are two columns of Invoice object

Thanks

+4  A: 

You can, in Django 1.1 using the F() object

synic