Bid: add charge_amount property.

This commit is contained in:
Brian Simpson
2013-10-01 11:36:48 -04:00
parent e6f010b90c
commit e43c7f4f62

View File

@@ -354,6 +354,10 @@ class Bid(Sessionized, Base):
def is_refund(self):
return (self.status == self.STATUS.REFUND)
@property
def charge_amount(self):
return self.charge or self.bid
class PromotionWeights(Sessionized, Base):
__tablename__ = "promotion_weight"