import operator


def equals(column, name='id', function=(lambda x: x)):
    """Make filter template for filtering column values equal to value
    transformed by given function.

    :param column: database model
    :param string name: name used in the filter template
    :param callable function: function for transforming the value
    :return dict: resulting template
    """
    return {name: (column, operator.eq, function)}