def occurrence(request, event_id, template_name='schedule/occurrence.html', *args, **kwargs):
 (event, occurrence) = get_occurrence(event_id, *args, **kwargs)
 back_url = request.META.get('HTTP_REFERER', None)
 return render_to_response(template_name, {'event': event, 'occurrence': occurrence, 'back_url': back_url}, context_instance=RequestContext(request))

def occurrence ( request , event_id , template_name = 'schedule/occurrence.html' , * args , ** kwargs ) : ( event , occurrence ) = get_occurrence ( event_id , * args , ** kwargs ) back_url = request . META . get ( 'HTTP_REFERER' , None ) return render_to_response ( template_name , { 'event' : event , 'occurrence' : occurrence , 'back_url' : back_url } , context_instance = RequestContext ( request ) )
this view is used to display an occurrence .