display the exchangerate with name and value
This commit is contained in:
parent
c38a9b1e16
commit
fded4a80f9
|
@ -26,4 +26,4 @@ class ExchangeRate(models.Model):
|
|||
return round(rate.exchange_rate_to_chf * _base_currency, 2)
|
||||
|
||||
def __str__(self):
|
||||
return str(self.name)
|
||||
return '{} {}'.format(self.exchange_rate_to_chf, self.name)
|
||||
|
|
Loading…
Reference in New Issue