Update __str__ of snapshots
This commit is contained in:
parent
8b859651e8
commit
b611085467
3 changed files with 7 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue