def get_all_matching(cls, column_name, values):
    """
    Return all instances of ``cls`` where ``column_name`` matches one of ``values``.

    :param cls:
    :param column_name:
    :param values:
    """
    column = getattr(cls, column_name)
    query = cls.query.filter(column.in_(values))
    return query.all()