Skip to content

Commit

Permalink
Add required basename to router
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed May 7, 2024
1 parent a6539ba commit 6fac92f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pretalx_youtube/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
from .views import YouTubeSettings

router = routers.SimpleRouter()
router.register(f"api/events/(?P<event>{SLUG_REGEX})/p/youtube", YouTubeLinkViewSet)
router.register(
f"api/events/(?P<event>{SLUG_REGEX})/p/youtube",
YouTubeLinkViewSet,
basename="youtube",
)

urlpatterns = [
re_path(
Expand Down

0 comments on commit 6fac92f

Please sign in to comment.