mamweb/personalni/urls.py

37 lines
859 B
Python
Raw Normal View History

2021-10-08 18:06:02 +02:00
from django.urls import path
from django.contrib.auth.decorators import login_required
from . import views
2024-08-05 11:46:38 +02:00
from personalni.utils import org_required
2021-10-08 18:06:02 +02:00
urlpatterns = [
path(
'org/rozcestnik/',
org_required(views.OrgoRozcestnikView.as_view()),
2024-11-01 12:38:47 +01:00
name='personalni_org_rozcestnik'
2021-10-08 18:06:02 +02:00
),
2024-11-01 12:38:47 +01:00
path('prihlaska/', views.prihlaskaView, name='personalni_prihlaska'),
2021-10-08 18:06:02 +02:00
path(
'resitel/osobni-udaje/',
login_required(views.resitelEditView),
2024-11-01 12:38:47 +01:00
name='personalni_resitel_edit'
2021-10-08 18:06:02 +02:00
),
# Obecný view na profil -- orgům dá rozcestník, řešitelům jejich stránku
path('profil/', views.profilView, name='profil'),
# Seznam organizátorů
path(
'o-nas/organizatori/',
views.CojemamOrganizatoriView.as_view(),
name='organizatori'
),
path(
'o-nas/organizatori/organizovali/',
views.CojemamOrganizatoriStariView.as_view(),
name='stari_organizatori'
),
2021-10-08 18:06:02 +02:00
]