From 7c8f63d75651a1b4f7e5509a85a62e9694f0700f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Mon, 6 Jun 2016 00:13:10 +0200 Subject: [PATCH] Corrections dans les urls --- cof/urls.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cof/urls.py b/cof/urls.py index 6b55e5dd..18e4b5db 100644 --- a/cof/urls.py +++ b/cof/urls.py @@ -47,11 +47,13 @@ urlpatterns = patterns('', url(r'^bda/revente/(?P\d+)$', 'bda.views.revente', name = 'bda-revente'), url(r'^bda/etat-places/(?P\d+)$', 'bda.views.etat_places', name = 'bda-etat-places'), url(r'^bda/tirage/(?P\d+)$', 'bda.views.tirage'), - url(r'^bda/spectacles/(?P\d+)/$', lambda tirage_id: ListView(model=Spectacle, - queryset=Spectacle.objects.filter(tirage__id=tirage_id) - ), name ="bda-liste-spectacles"), - url(r'^bda/spectacles/(?P\d+)(?P\d+)$', "bda.views.spectacle", name = "bda-spectacle"), - url(r'^bda/spectacles/(?P)/liste_spectacles.ics$', 'bda.views.liste_spectacles_ics', name ="bda-liste-spectacles-ics"), + # FIXME + url(r'^bda/spectacles/(?P\d+)$', lambda request, tirage_id: + ListView(model=Spectacle, + queryset=Spectacle.objects.filter(tirage__id=tirage_id) + ), name ="bda-liste-spectacles"), + url(r'^bda/spectacles/(?P\d+)/(?P\d+)$', "bda.views.spectacle", name = "bda-spectacle"), + url(r'^bda/spectacles-ics/(?P\d+)$', 'bda.views.liste_spectacles_ics', name ="bda-liste-spectacles-ics"), url(r'^bda/spectacles/unpaid(?P\d+)$', "bda.views.unpaid", name = "bda-unpaid"), url(r'^survey/(?P\d+)$', 'gestioncof.views.survey'),