diff options
author | 2020-07-19 11:55:20 +0200 | |
---|---|---|
committer | 2020-07-19 11:55:20 +0200 | |
commit | 8874a83fa6372e0ce46e9552e8c21c182e4a1c3e (patch) | |
tree | e60ae36f91180ef74cc2d1fbba0d985ff8a86d48 /pydis_site/apps/api/serializers.py | |
parent | Add an endpoint for getting AllowDenyList types. (diff) |
Add another AllowDenyList field, 'comment'.
This will be used to describe or justify the entries in the blacklist or
whitelist, for example for the guild name in the case of guild invite
IDs, so that we have some context when we're displaying the list.
https://github.com/python-discord/site/issues/305
Diffstat (limited to 'pydis_site/apps/api/serializers.py')
-rw-r--r-- | pydis_site/apps/api/serializers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/serializers.py b/pydis_site/apps/api/serializers.py index d532dd69..50f27f1d 100644 --- a/pydis_site/apps/api/serializers.py +++ b/pydis_site/apps/api/serializers.py @@ -111,7 +111,7 @@ class AllowDenyListSerializer(ModelSerializer): """Metadata defined for the Django REST Framework.""" model = AllowDenyList - fields = ('id', 'created_at', 'updated_at', 'type', 'allowed', 'content') + fields = ('id', 'created_at', 'updated_at', 'type', 'allowed', 'content', 'comment') class InfractionSerializer(ModelSerializer): |