diff options
author | 2020-07-16 10:38:58 +0800 | |
---|---|---|
committer | 2020-07-16 10:38:58 +0800 | |
commit | cdbda598fafccdd4ef0a324e7b18ce070aaf2d70 (patch) | |
tree | e55fb5e2eaac4bfb05dbd0c2a4324c508741d31b /pydis_site | |
parent | Add mentions field to Reminder model (diff) |
Return mentions from ReminderSerializer
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/apps/api/serializers.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pydis_site/apps/api/serializers.py b/pydis_site/apps/api/serializers.py index f2d5144c..80e552a6 100644 --- a/pydis_site/apps/api/serializers.py +++ b/pydis_site/apps/api/serializers.py @@ -203,7 +203,9 @@ class ReminderSerializer(ModelSerializer): """Metadata defined for the Django REST Framework.""" model = Reminder - fields = ('active', 'author', 'jump_url', 'channel_id', 'content', 'expiration', 'id') + fields = ( + 'active', 'author', 'jump_url', 'channel_id', 'content', 'expiration', 'id', 'mentions' + ) class RoleSerializer(ModelSerializer): |