Pavlova verze URLconfu #33

Closed
ledoian wants to merge 2 commits from vyroci-fix into vyroci
2 changed files with 5 additions and 5 deletions

View file

@ -68,8 +68,8 @@ urlpatterns = [
# REST API # REST API
# path('api/', include(router.urls)), # path('api/', include(router.urls)),
# Výroční sraz # Organizátorský sraz k výročí 30 let M&M
path('srazy/', include('vyroci.urls')), path('sraz-30let/', include('vyroci.urls')),
] ]

View file

@ -5,13 +5,13 @@ from .views import VyrociView, VyrociListView
urlpatterns = [ urlpatterns = [
path( path(
'30-let/', '',
VyrociView.as_view(), VyrociView.as_view(),
name='vyrocni_sraz' name='vyrocni_sraz'
), ),
path( path(
'30-let_vysledky/', 'ucastnici',
org_required(VyrociListView.as_view()), org_required(VyrociListView.as_view()),
name='vyrocni_sraz_vysledky' name='vyrocni_sraz_ucastnici'
), ),
] ]