aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/urls.py
diff options
context:
space:
mode:
authorGravatar jchristgit <[email protected]>2025-05-01 19:20:52 +0200
committerGravatar GitHub <[email protected]>2025-05-01 19:20:52 +0200
commit7a6effee36a7a9e71eb506f353bbf8c80be2e335 (patch)
treef68ac0eff920f6ed72af8c46211d56daf97f65fa /pydis_site/apps/api/urls.py
parentMerge pull request #1515 from python-discord/resource-missing-semester (diff)
parentMark unique constraint error checks as no cover (diff)
Merge pull request #1499 from python-discord/dependabot/pip/djangorestframework-3.16.0
Bump djangorestframework from 3.14.0 to 3.16.0
Diffstat (limited to 'pydis_site/apps/api/urls.py')
-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',