#NEWLINE# @ register . filter #NEWLINE# def gender( value , target ) : #NEWLINE# #INDENT# if ( trans in genders ) : #NEWLINE# #INDENT# trans = ( ( ( target == 'm' ) and genders [ value ] [ 0 ] ) or genders [ value ] [ 1 ] ) #NEWLINE# if ( trans . find ( '_' ) == ( - 1 ) ) : #NEWLINE# #INDENT# return trans #NEWLINE# #UNINDENT# #UNINDENT# return value