[collector model] implement __str__()

This commit is contained in:
bronsen 2025-03-12 22:56:09 +01:00
parent 67a4063a21
commit 77c67c637c

View file

@ -13,3 +13,7 @@ class Teile(models.Model):
indexes = [
models.Index(fields=["modified"], name="idx_modified"),
]
def __str__(self) -> str:
modified = self.modified.isoformat(timespec="seconds")
return f"{self.name} (last change: {modified})"