From 9ea0839ba86f67165b3ee3b2d47400b3181cdd0c Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Fri, 30 Dec 2022 18:05:00 +0100 Subject: [PATCH] Add account to statement __str__ --- nummi/main/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nummi/main/models.py b/nummi/main/models.py index 5336fec..ffde2ef 100644 --- a/nummi/main/models.py +++ b/nummi/main/models.py @@ -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():