def __unicode__(self): return u"{} on {}: {} x {}".format( gold_short(self.price * self.quantity), self.sale_time, self.item.name, self.quantity, )
def __unicode__(self): return "{}: {} / {}".format(self.item.name, gold_short(self.price), gold_short(self.average_price))
def table(left, right=None): if right: # output_list.append("{}: {}".format(left, gold(right))) output_list.append((left, gold_short(right))) else: output_list.append(left)