From a247528baade44a02c6cf94ea4eda8122b299967 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Tue, 8 Jul 2025 15:06:46 +0200 Subject: [PATCH] TagKey __str__ --- tags/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tags/models.py b/tags/models.py index 43ae096..1964d4a 100644 --- a/tags/models.py +++ b/tags/models.py @@ -52,6 +52,9 @@ class TagKey(models.Model): # the obvious constraint, which doubles as a lookup index for store_tags and search. unique_together = ('project', 'key') + def __str__(self): + return f"{self.key}" + class TagValue(models.Model): project = models.ForeignKey(Project, blank=False, null=False, on_delete=models.DO_NOTHING)