def status(self): ammount_owed = self.ammount_owed_current if ammount_owed > 0: return u"You are owed %s." % money_format(ammount_owed) if ammount_owed < 0: return u"You owe %s." % money_format(-ammount_owed) else: return u"You are even."
def __unicode__(self): return u"%s owes %s for '%s'" % (self.user, money_format(self.ammount), self.purchase)
def __unicode__(self): return u"%s for %s by %s" % (self.title, money_format(self.total), self.purchaser.name)
def format_receiver(self): return u"%s from %s" % (money_format(self.ammount), self.sender.name)
def format_sender(self): return u"%s to %s" % (money_format(self.ammount), self.recipient.name)
def __unicode__(self): return u"%s from %s to %s" % (money_format(self.ammount), self.sender.name, self.recipient.name)