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