aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/viewsets
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/apps/api/viewsets')
-rw-r--r--pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py b/pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py
index 7151d29b..27eabec9 100644
--- a/pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py
+++ b/pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py
@@ -70,7 +70,7 @@ class OffTopicChannelNameViewSet(ModelViewSet):
def get_queryset(self, **kwargs) -> QuerySet:
"""Returns a queryset that covers the entire OffTopicChannelName table."""
- return OffTopicChannelName.objects.filter(**kwargs)
+ return OffTopicChannelName.objects.all()
def create(self, request: Request, *args, **kwargs) -> Response:
"""
@@ -137,6 +137,6 @@ class OffTopicChannelNameViewSet(ModelViewSet):
if active_param := request.query_params.get("active"):
params["active"] = active_param.lower() == "true"
- queryset = self.get_queryset(**params)
+ queryset = self.get_queryset().filter(**params)
serialized = self.serializer_class(queryset, many=True)
return Response(serialized.data)