2018-01-04 23:33:31 +01:00
|
|
|
from django.urls import path
|
2016-08-29 05:38:10 +02:00
|
|
|
|
2015-07-22 16:08:59 -04:00
|
|
|
from propositions.views import PropDelete
|
2016-08-29 05:38:10 +02:00
|
|
|
from propositions import views
|
2015-07-22 16:08:59 -04:00
|
|
|
|
2018-01-04 23:33:31 +01:00
|
|
|
app_name = "propositions"
|
2016-08-29 05:38:10 +02:00
|
|
|
urlpatterns = [
|
2020-01-05 00:32:02 +01:00
|
|
|
path("", views.PropositionList.as_view(), name="list"),
|
2020-01-05 00:18:31 +01:00
|
|
|
path("new", views.PropositionCreate.as_view(), name="create"),
|
2020-01-05 12:02:24 +01:00
|
|
|
path("<int:id>/oui", views.reponse, {"rep": "oui"}, name="oui"),
|
|
|
|
path("<int:id>/non", views.reponse, {"rep": "non"}, name="non"),
|
2018-01-04 23:33:31 +01:00
|
|
|
path("<int:pk>/supprimer", PropDelete.as_view(), name="delete"),
|
2016-08-29 05:38:10 +02:00
|
|
|
]
|