from django.conf.urls import url from petitscours import views from petitscours.views import DemandeDetailView, DemandeListView from gestioncof.decorators import buro_required urlpatterns = [ url(r"^inscription$", views.inscription, name="petits-cours-inscription"), url(r"^demande$", views.demande, name="petits-cours-demande"), url(r"^demande-raw$", views.demande_raw, name="petits-cours-demande-raw"), url( r"^demandes$", buro_required(DemandeListView.as_view()), name="petits-cours-demandes-list", ), url( r"^demandes/(?P\d+)$", buro_required(DemandeDetailView.as_view()), name="petits-cours-demande-details", ), url( r"^demandes/(?P\d+)/traitement$", views.traitement, name="petits-cours-demande-traitement", ), url( r"^demandes/(?P\d+)/retraitement$", views.retraitement, name="petits-cours-demande-retraitement", ), ]