diff options
author | 2025-05-01 08:18:09 +0200 | |
---|---|---|
committer | 2025-05-01 08:19:04 +0200 | |
commit | eab40a91218570632f41474d40e3dc9efd1eb26f (patch) | |
tree | 016c50619bdb54649936aae98cdde8db09308612 /pydis_site/apps | |
parent | Bump djangorestframework from 3.14.0 to 3.16.0 (diff) |
Give different basenames to duplicate FilterListViewSet
Diffstat (limited to 'pydis_site/apps')
-rw-r--r-- | pydis_site/apps/api/urls.py | 6 |
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', |