fix erroneous reverse_lazy call

This commit is contained in:
Martin Pépin 2019-03-16 18:16:29 +01:00
parent 8d49252940
commit f7fe0eaa71

View file

@ -262,7 +262,7 @@ class EventUpdate(UpdateView):
model = Event model = Event
template_name = "calendrier/update.html" template_name = "calendrier/update.html"
form_class = ModifEventForm form_class = ModifEventForm
success_url = reverse_lazy(home) success_url = reverse_lazy("home")
@method_decorator(chef_required) @method_decorator(chef_required)
def dispatch(self, *args, **kwargs): def dispatch(self, *args, **kwargs):
@ -272,7 +272,7 @@ class EventUpdate(UpdateView):
class EventDelete(DeleteView): class EventDelete(DeleteView):
model = Event model = Event
template_name = "calendrier/delete.html" template_name = "calendrier/delete.html"
success_url = reverse_lazy(home) success_url = reverse_lazy("home")
@method_decorator(chef_required) @method_decorator(chef_required)
def dispatch(self, *args, **kwargs): def dispatch(self, *args, **kwargs):