From 7ea6490e325f5cb5d72c34b3574ef57ef1c62434 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sun, 23 Sep 2018 16:33:58 +0200 Subject: Use tag title as string representation. --- api/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'api') diff --git a/api/models.py b/api/models.py index e84e28c0..e5ec7992 100644 --- a/api/models.py +++ b/api/models.py @@ -179,3 +179,6 @@ class Tag(ModelReprMixin, models.Model): help_text="The actual embed shown by this tag.", validators=(validate_tag_embed,) ) + + def __str__(self): + return self.title -- cgit v1.2.3