def show_check(request, name):
 try:
  check = CHECKS[name]
 except KeyError:
  raise Http404('No check matches the given query.')
 ignore = ('ignored' in request.GET)
 url_params = {}
 if ignore:
  url_params['ignored'] = 'true'
 checks = acl_checks(request.user).filter(check=name, ignore=ignore)
 if ('language' in request.GET):
  checks = checks.filter(language__code=request.GET['language'])
  url_params['language'] = request.GET['language']
 if ('project' in request.GET):
  return redirect_param('show_check_project', encode_optional(url_params), project=request.GET['project'], name=name)
 checks = checks.values('project__slug').annotate(count=Count('id'))
 return render(request, 'check.html', {'checks': checks, 'title': check.name, 'check': check, 'url_params': encode_optional(url_params)})

def show_check ( request , name ) : try : check = CHECKS [ name ] except KeyError : raise Http404 ( 'No check matches the given query.' ) ignore = ( 'ignored' in request . GET ) url_params = { } if ignore : url_params [ 'ignored' ] = 'true' checks = acl_checks ( request . user ) . filter ( check = name , ignore = ignore ) if ( 'language' in request . GET ) : checks = checks . filter ( language__code = request . GET [ 'language' ] ) url_params [ 'language' ] = request . GET [ 'language' ] if ( 'project' in request . GET ) : return redirect_param ( 'show_check_project' , encode_optional ( url_params ) , project = request . GET [ 'project' ] , name = name ) checks = checks . values ( 'project__slug' ) . annotate ( count = Count ( 'id' ) ) return render ( request , 'check.html' , { 'checks' : checks , 'title' : check . name , 'check' : check , 'url_params' : encode_optional ( url_params ) } )
details about failing check .