correction d'un bug quand on publie un événement
This commit is contained in:
parent
92e1330fc4
commit
250f0b68e5
@ -214,10 +214,10 @@ def change_status_event(request, pk, status):
|
||||
event.status = Event.STATUS(status)
|
||||
event.save(update_fields=["status"])
|
||||
|
||||
if self.request.user.is_authenticated:
|
||||
return event.get_absolute_url()
|
||||
if request.user.is_authenticated:
|
||||
return HttpResponseRedirect(event.get_absolute_url())
|
||||
else:
|
||||
return reverse_lazy("home")
|
||||
return HttpResponseRedirect(reverse_lazy("home"))
|
||||
else:
|
||||
cancel_url = request.META.get('HTTP_REFERER', '')
|
||||
if cancel_url == "":
|
||||
|
Loading…
Reference in New Issue
Block a user