Add account to statement __str__

This commit is contained in:
Edgar P. Burkhart 2022-12-30 18:05:00 +01:00
parent a8bd70fab1
commit 9ea0839ba8
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -146,7 +146,9 @@ class Snapshot(AccountModel):
)
def __str__(self):
return _("%(date)s statement") % {"date": self.date}
return "{} {}".format(
_("%(date)s statement") % {"date": self.date}, self.account
)
def save(self, *args, **kwargs):
if Snapshot.objects.filter(id=self.id).exists():