Compare commits

..

2 commits

2 changed files with 4 additions and 2 deletions

View file

@ -14,7 +14,7 @@ depends=(
)
makedepends=("git")
optdepends=("postgresql: database")
backup=("etc/${pkgname%-git}.env")
backup=("etc/${pkgname%-git}/config.toml")
source=(
"${pkgname}::git+https://git.edgarpierre.fr/edpibu/nummi"
"${pkgname%-git}.service"

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():