django model fields comparison

Posted by Weiwei on Stack Overflow See other posts from Stack Overflow or by Weiwei
Published on 2010-03-31T04:55:04Z Indexed on 2010/03/31 5:03 UTC
Read the original article Hit count: 365

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models