fix erroneous reverse_lazy call
This commit is contained in:
parent
8d49252940
commit
f7fe0eaa71
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue