Update __str__ of snapshots

This commit is contained in:
Edgar P. Burkhart 2022-12-26 18:11:09 +01:00
parent 8b859651e8
commit b611085467
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 7 additions and 2 deletions

View file

@ -156,7 +156,7 @@ class Snapshot(models.Model):
)
def __str__(self):
return f"{_('Snapshot')} {self.date}"
return _("%(date)s snapshot") % {"date": self.date}
def save(self, *args, only_super=False, **kwargs):
if not only_super: