def display_fee(self, amount=None):
if amount is None:
amount = self.pay
if not amount:
return ''
if self.currency in CURRENCY_SYMBOLS:
return '{}{}'.format(CURRENCY_SYMBOLS[self.currency], floatformat(amount, arg=-2))
return amount or ''
评论列表
文章目录