Add euros symbols

This commit is contained in:
Ludovic Stephan 2017-03-25 10:01:35 -03:00
parent d8f572bb01
commit 14e0d8090f

View file

@ -575,10 +575,10 @@ class Operation(models.Model):
def __str__(self):
templates = {
self.PURCHASE: "{nb} {article.name} ({amount}€)",
self.DEPOSIT: "charge ({amount})",
self.WITHDRAW: "retrait ({amount})",
self.INITIAL: "initial ({amount})",
self.EDIT: "édition ({amount})",
self.DEPOSIT: "charge ({amount})",
self.WITHDRAW: "retrait ({amount})",
self.INITIAL: "initial ({amount})",
self.EDIT: "édition ({amount})",
}
return templates[self.type].format(nb=self.article_nb,
article=self.article,