2018-01-04 23:33:31 +01:00
|
|
|
from django.urls import path
|
2016-08-29 05:38:10 +02:00
|
|
|
|
|
|
|
from propositions import views
|
2020-01-05 15:30:50 +01:00
|
|
|
from propositions.models import Answer
|
|
|
|
from propositions.views import PropDelete
|
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 15:30:50 +01:00
|
|
|
path("<int:id>/oui", views.answer, {"rep": "oui"}, name=Answer.YES),
|
|
|
|
path("<int:id>/non", views.answer, {"rep": "non"}, name=Answer.NO),
|
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
|
|
|
]
|