[collector model] implement __str__()
This commit is contained in:
parent
67a4063a21
commit
77c67c637c
1 changed files with 4 additions and 0 deletions
|
@ -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})"
|
||||
|
|
Loading…
Add table
Reference in a new issue