Exemplo n.º 1
0
 def __unicode__(self):
     res='%s'%self.product
     if not self.quantity==1:
         res+='(%d)'%self.quantity
     res+=' for %s%s'%(rstripz(self.cost), self.currency.symbol)
     return res
Exemplo n.º 2
0
 def __unicode__(self):
     return '%s %s: %s'%(self.spot, self.created.strftime(DATE), rstripz(self.amount))#','.join([str(s) for s in self.sets.all()]),)