aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-23 16:33:58 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-23 16:33:58 +0200
commit7ea6490e325f5cb5d72c34b3574ef57ef1c62434 (patch)
tree0dbdae7f911c39666f797068b165bf723210ba1d /api
parentDon't ignore `migrations` directory in container. (diff)
Use tag title as string representation.
Diffstat (limited to 'api')
-rw-r--r--api/models.py3
1 files changed, 3 insertions, 0 deletions
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