Skip to content

Commit eab40a9

Browse files
committed
Give different basenames to duplicate FilterListViewSet
1 parent 5e6882f commit eab40a9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pydis_site/apps/api/urls.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@
2828

2929
# https://www.django-rest-framework.org/api-guide/routers/#defaultrouter
3030
bot_router = DefaultRouter(trailing_slash=False)
31+
# XXX: We should probably figure out why we have this registered twice.
3132
bot_router.register(
3233
'filter/filter_lists',
33-
FilterListViewSet
34+
FilterListViewSet,
35+
basename="filter-filterlists-list",
3436
)
3537
bot_router.register(
3638
"aoc-account-links",
@@ -62,7 +64,7 @@
6264
)
6365
bot_router.register(
6466
'filter-lists',
65-
FilterListViewSet
67+
FilterListViewSet,
6668
)
6769
bot_router.register(
6870
'infractions',

0 commit comments

Comments
 (0)