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): def __str__(self):
templates = { templates = {
self.PURCHASE: "{nb} {article.name} ({amount}€)", self.PURCHASE: "{nb} {article.name} ({amount}€)",
self.DEPOSIT: "charge ({amount})", self.DEPOSIT: "charge ({amount})",
self.WITHDRAW: "retrait ({amount})", self.WITHDRAW: "retrait ({amount})",
self.INITIAL: "initial ({amount})", self.INITIAL: "initial ({amount})",
self.EDIT: "édition ({amount})", self.EDIT: "édition ({amount})",
} }
return templates[self.type].format(nb=self.article_nb, return templates[self.type].format(nb=self.article_nb,
article=self.article, article=self.article,