fix: keep dropdown menu expanded

This commit is contained in:
Luca 2023-12-18 01:15:50 +01:00
parent 14df5d5b68
commit 3091fb0783
2 changed files with 3 additions and 3 deletions

View File

@ -29,10 +29,10 @@ def pretalx_musicrate_settings(sender, request, **kwargs):
{ {
"label": "pretalx-musicrate", "label": "pretalx-musicrate",
"url": reverse( "url": reverse(
"plugins:pretalx_musicrate:settings", "plugins:pretalx_musicrate:settings.musicrate",
kwargs={"event": request.event.slug}, kwargs={"event": request.event.slug},
), ),
"active": request.resolver_match.view_name "active": request.resolver_match.view_name
== "plugins:pretalx_musicrate:settings", == "plugins:pretalx_musicrate:settings.musicrate",
} }
] ]

View File

@ -13,7 +13,7 @@ urlpatterns = [
path( path(
"orga/event/<slug:event>/settings/p/pretalx_musicrate/", "orga/event/<slug:event>/settings/p/pretalx_musicrate/",
MusicrateSettingsView.as_view(), MusicrateSettingsView.as_view(),
name="settings", name="settings.musicrate",
), ),
path( path(
"<slug:event>/p/pretalx_musicrate/", "<slug:event>/p/pretalx_musicrate/",