def handle_reset(request):
 for rec in Record.objects.outstanding():
  rec.mark_fail('Cancelled.')
 return HttpResponseRedirect(request.path)

def handle_reset ( request ) : for rec in Record . objects . outstanding ( ) : rec . mark_fail ( 'Cancelled.' ) return HttpResponseRedirect ( request . path )
resets records .