Fix broken urls

This commit is contained in:
Martin Pépin 2020-01-04 00:01:16 +01:00
parent 2c6df31538
commit 1176bb1eec
No known key found for this signature in database
GPG key ID: E7520278B1774448
2 changed files with 7 additions and 7 deletions

View file

@ -13,7 +13,7 @@ urlpatterns = [
path("resend/<int:id>", views.resend, name="resend"),
path("changename", views.changename, name="change-doodle-name"),
path("<int:id>/reponse", views.reponse, name="reponse"),
path("rep/<slug:codeus>/<slug:codeev>/<slug:coderep>", views.reponse_event, name="reponse_event"),
path("rep/<str:codeus>/<slug:codeev>/<slug:coderep>", views.reponse_event, name="reponse_event"),
path("<int:pYear>/<int:pMonth>", views.calendar, name="view-month"),
path("<int:id>", views.view_event, name="view-event"),
]

View file

@ -132,11 +132,11 @@ def resend(request, id):
% (domain,
reverse_lazy('calendrier:view-event', args=[ev.id]),
domain,
reverse_lazy('calendrier.reponse_event', args=[user.slug, ev.slug, "oui"]),
reverse_lazy('calendrier:reponse_event', args=[user.slug, ev.slug, "oui"]),
domain,
reverse_lazy('calendrier.reponse_event', args=[user.slug, ev.slug, "non"]),
reverse_lazy('calendrier:reponse_event', args=[user.slug, ev.slug, "non"]),
domain,
reverse_lazy('calendrier.reponse_event', args=[user.slug, ev.slug, "pe"]))
reverse_lazy('calendrier:reponse_event', args=[user.slug, ev.slug, "pe"]))
try:
send_mail(Subject, text, sender, receivers)
except:
@ -203,11 +203,11 @@ def create_event(request):
% (domain,
reverse('calendrier:view-event', args=[obj.id]),
domain,
reverse('calendrier.reponse_event', args=[user.slug, obj.slug, "oui"]),
reverse('calendrier:reponse_event', args=[user.slug, obj.slug, "oui"]),
domain,
reverse('calendrier.reponse_event', args=[user.slug, obj.slug, "non"]),
reverse('calendrier:reponse_event', args=[user.slug, obj.slug, "non"]),
domain,
reverse('calendrier.reponse_event', args=[user.slug, obj.slug, "pe"]))
reverse('calendrier:reponse_event', args=[user.slug, obj.slug, "pe"]))
try:
send_mail(Subject, text, sender, receivers)
except: