Misc urlconf files

This commit is contained in:
Ludovic Stephan 2019-04-12 17:07:03 +02:00
parent 271732f40d
commit 8fc6f96324
3 changed files with 32 additions and 44 deletions

View file

@ -1,35 +1,35 @@
from django.conf.urls import url
from django.urls import path
from gestioncof.decorators import buro_required
from petitscours import views
from petitscours.views import DemandeDetailView, DemandeListView
urlpatterns = [
url(r"^inscription$", views.inscription, name="petits-cours-inscription"),
url(r"^demande$", views.demande, name="petits-cours-demande"),
url(
r"^demande-raw$",
path("inscription", views.inscription, name="petits-cours-inscription"),
path("demande", views.demande, name="petits-cours-demande"),
path(
"demande-raw",
views.demande,
kwargs={"raw": True},
name="petits-cours-demande-raw",
),
url(
r"^demandes$",
path(
"demandes",
buro_required(DemandeListView.as_view()),
name="petits-cours-demandes-list",
),
url(
r"^demandes/(?P<pk>\d+)$",
path(
"demandes/<int:pk>",
buro_required(DemandeDetailView.as_view()),
name="petits-cours-demande-details",
),
url(
r"^demandes/(?P<demande_id>\d+)/traitement$",
path(
"demandes/<int:demande_id>/traitement",
views.traitement,
name="petits-cours-demande-traitement",
),
url(
r"^demandes/(?P<demande_id>\d+)/retraitement$",
path(
"demandes/<int:demande_id>/retraitement",
views.traitement,
kwargs={"redo": True},
name="petits-cours-demande-retraitement",