def _ternary_filter(ternary_value):
 return (ternary_value == constants.TERNARY_YES)

def _ternary_filter ( ternary_value ) : return ( ternary_value == constants . TERNARY_YES )
return a search query given a ternary_yes or ternary_no .