def _get_boolean_param(request, param_name):
 return (request.POST.get(param_name, False) in ['true', 'True', True])

def _get_boolean_param ( request , param_name ) : return ( request . POST . get ( param_name , False ) in [ 'true' , 'True' , True ] )
returns the value of the boolean parameter with the given name in the post request .