diff --git a/collector/models.py b/collector/models.py index e850293..70cdcb5 100644 --- a/collector/models.py +++ b/collector/models.py @@ -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})"