aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/serializers.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-10-29 03:19:37 +0400
committerGravatar Hassan Abouelela <[email protected]>2021-10-29 03:19:37 +0400
commit367c01a7b3cd5cc5ee25644ae92f917ceb00562c (patch)
tree3be351f403e75d56eb7b08a5e20aa432b2a64ec5 /pydis_site/apps/api/serializers.py
parentMerge pull request #617 from python-discord/mbaruh-patch-1 (diff)
Adds Failures Field To Reminders
Adds an integer field to reminders, to keep track of how many failed attempts at delivering the reminder were made. Updates documentation and serialization. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'pydis_site/apps/api/serializers.py')
-rw-r--r--pydis_site/apps/api/serializers.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/pydis_site/apps/api/serializers.py b/pydis_site/apps/api/serializers.py
index f47bedca..3e213d43 100644
--- a/pydis_site/apps/api/serializers.py
+++ b/pydis_site/apps/api/serializers.py
@@ -231,7 +231,15 @@ class ReminderSerializer(ModelSerializer):
model = Reminder
fields = (
- 'active', 'author', 'jump_url', 'channel_id', 'content', 'expiration', 'id', 'mentions'
+ 'active',
+ 'author',
+ 'jump_url',
+ 'channel_id',
+ 'content',
+ 'expiration',
+ 'id',
+ 'mentions',
+ 'failures'
)