def operator(self):
        """Get the function operator from his name

        :return callable: a callable to make operation on a column
        """
        operators = (self.op, self.op + '_', '__' + self.op + '__')

        for op in operators:
            if hasattr(self.column, op):
                return op

        raise InvalidFilters("{} has no operator {}".format(self.column.key, self.op))
def operator ( self ) : operators = ( self . op , self . op + '_' , '__' + self . op + '__' ) for op in operators : if hasattr ( self . column , op ) : return op raise InvalidFilters ( "{} has no operator {}" . format ( self . column . key , self . op ) )
Get the function operator from his name

        :return callable: a callable to make operation on a column