Fix string representation of currency

This commit is contained in:
Kumi 2020-06-03 18:25:59 +02:00
parent 55d1a4e79f
commit 3d09ce4e7e

View file

@ -20,7 +20,7 @@ class Currency(Model):
return cls.objects.get(base=True)
def __str__(self):
return f"{name} ({code})"
return f"{self.name} ({self.code})"
class TaxPolicy(Model):
name = LongCharField(blank=True)