@check_event_permissions
def delete_event(request, event_id, next=None, login_required=True):
 event = get_object_or_404(Event, id=event_id)
 next = (next or reverse('day_calendar', args=[event.calendar.slug]))
 next = get_next_url(request, next)
 return delete_object(request, model=Event, object_id=event_id, post_delete_redirect=next, template_name='schedule/delete_event.html', extra_context=dict(next=next), login_required=login_required)

@ check_event_permissions def delete_event ( request , event_id , next = None , login_required = True ) : event = get_object_or_404 ( Event , id = event_id ) next = ( next or reverse ( 'day_calendar' , args = [ event . calendar . slug ] ) ) next = get_next_url ( request , next ) return delete_object ( request , model = Event , object_id = event_id , post_delete_redirect = next , template_name = 'schedule/delete_event.html' , extra_context = dict ( next = next ) , login_required = login_required )
after the event is deleted there are three options for redirect .