aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/serializers.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-03-18 15:11:34 +0000
committerGravatar GitHub <[email protected]>2022-03-18 15:11:34 +0000
commit429d98a5349b55e63f93e6192d8b2b35262dc60b (patch)
treea70dfa87a8bca9279e98da272e7a95ba3ff287e6 /pydis_site/apps/api/serializers.py
parentAdd tests for custom BumpedThread impl (diff)
fixup: don't use "We" in docstring
Co-authored-by: Mark <[email protected]>
Diffstat (limited to 'pydis_site/apps/api/serializers.py')
-rw-r--r--pydis_site/apps/api/serializers.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pydis_site/apps/api/serializers.py b/pydis_site/apps/api/serializers.py
index dfdda915..e53ccffa 100644
--- a/pydis_site/apps/api/serializers.py
+++ b/pydis_site/apps/api/serializers.py
@@ -49,8 +49,7 @@ class ListBumpedThreadSerializer(ListSerializer):
"""
Used by the `ListModelMixin` to return just the list of bumped thread ids.
- We want to only return the thread_id attribute, hence it is unnecessary
- to create a nested dictionary.
+ Only the thread_id field is useful, hence it is unnecessary to create a nested dictionary.
Additionally, this allows bumped thread routes to simply return an
array of thread_id ints instead of objects, saving on bandwidth.