diff --git a/r2/r2/models/bidding.py b/r2/r2/models/bidding.py index 9da67ae00..8425bedf6 100644 --- a/r2/r2/models/bidding.py +++ b/r2/r2/models/bidding.py @@ -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"