Commit 5e33e157 authored by Luko van der Maas's avatar Luko van der Maas
Browse files

Apply suggestion to website/events/

parent c1aaa58f
...@@ -169,10 +169,10 @@ class EventMessage(FormView): ...@@ -169,10 +169,10 @@ class EventMessage(FormView):
messages.success(self.request, messages.success(self.request,
_("Message sent successfully.")) _("Message sent successfully."))
if '_save' in self.request.POST: if '_save' in self.request.POST:
return HttpResponseRedirect(reverse( return redirect(
'admin:events_event_details', 'admin:events_event_details',
args=[str(] args=[str(]
)) )
def dispatch(self, request, *args, **kwargs): def dispatch(self, request, *args, **kwargs):
self.event = get_object_or_404(Event, pk=self.kwargs['pk']) self.event = get_object_or_404(Event, pk=self.kwargs['pk'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment