Ejemplo n.º 1
0
 def __unicode__(self):
     return u"{} on {}: {} x {}".format(
         gold_short(self.price * self.quantity),
         self.sale_time,
         self.item.name,
         self.quantity,
     )
Ejemplo n.º 2
0
 def __unicode__(self):
     return "{}: {} / {}".format(self.item.name, 
                                 gold_short(self.price), 
                                 gold_short(self.average_price))
Ejemplo n.º 3
0
 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)