From f7fe0eaa71d53c1f895f03afadf608a7031ae818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Sat, 16 Mar 2019 18:16:29 +0100 Subject: [PATCH] fix erroneous reverse_lazy call --- calendrier/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendrier/views.py b/calendrier/views.py index 8f9eb14..73cb24d 100644 --- a/calendrier/views.py +++ b/calendrier/views.py @@ -262,7 +262,7 @@ class EventUpdate(UpdateView): model = Event template_name = "calendrier/update.html" form_class = ModifEventForm - success_url = reverse_lazy(home) + success_url = reverse_lazy("home") @method_decorator(chef_required) def dispatch(self, *args, **kwargs): @@ -272,7 +272,7 @@ class EventUpdate(UpdateView): class EventDelete(DeleteView): model = Event template_name = "calendrier/delete.html" - success_url = reverse_lazy(home) + success_url = reverse_lazy("home") @method_decorator(chef_required) def dispatch(self, *args, **kwargs):