aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2025-05-01 08:18:09 +0200
committerGravatar Johannes Christ <[email protected]>2025-05-01 08:19:04 +0200
commiteab40a91218570632f41474d40e3dc9efd1eb26f (patch)
tree016c50619bdb54649936aae98cdde8db09308612
parentBump djangorestframework from 3.14.0 to 3.16.0 (diff)
Give different basenames to duplicate FilterListViewSet
-rw-r--r--pydis_site/apps/api/urls.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pydis_site/apps/api/urls.py b/pydis_site/apps/api/urls.py
index 5cda033a..ae3172c7 100644
--- a/pydis_site/apps/api/urls.py
+++ b/pydis_site/apps/api/urls.py
@@ -28,9 +28,11 @@ from .viewsets import (
# https://www.django-rest-framework.org/api-guide/routers/#defaultrouter
bot_router = DefaultRouter(trailing_slash=False)
+# XXX: We should probably figure out why we have this registered twice.
bot_router.register(
'filter/filter_lists',
- FilterListViewSet
+ FilterListViewSet,
+ basename="filter-filterlists-list",
)
bot_router.register(
"aoc-account-links",
@@ -62,7 +64,7 @@ bot_router.register(
)
bot_router.register(
'filter-lists',
- FilterListViewSet
+ FilterListViewSet,
)
bot_router.register(
'infractions',