diff options
author | 2021-10-29 03:19:37 +0400 | |
---|---|---|
committer | 2021-10-29 03:19:37 +0400 | |
commit | 367c01a7b3cd5cc5ee25644ae92f917ceb00562c (patch) | |
tree | 3be351f403e75d56eb7b08a5e20aa432b2a64ec5 /pydis_site/apps/api/serializers.py | |
parent | Merge 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.py | 10 |
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' ) |