Add account to statement __str__
This commit is contained in:
parent
a8bd70fab1
commit
9ea0839ba8
1 changed files with 3 additions and 1 deletions
|
@ -146,7 +146,9 @@ class Snapshot(AccountModel):
|
||||||
)
|
)
|
||||||
|
|
||||||
def __str__(self):
|
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):
|
def save(self, *args, **kwargs):
|
||||||
if Snapshot.objects.filter(id=self.id).exists():
|
if Snapshot.objects.filter(id=self.id).exists():
|
||||||
|
|
Loading…
Reference in a new issue