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):