diff options
author | 2018-09-23 16:33:58 +0200 | |
---|---|---|
committer | 2018-09-23 16:33:58 +0200 | |
commit | 7ea6490e325f5cb5d72c34b3574ef57ef1c62434 (patch) | |
tree | 0dbdae7f911c39666f797068b165bf723210ba1d /api | |
parent | Don't ignore `migrations` directory in container. (diff) |
Use tag title as string representation.
Diffstat (limited to 'api')
-rw-r--r-- | api/models.py | 3 |
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 |