'Add any filters to the given query.'

def _apply_orm_filters(self, query, filters):

    if (filters is None):
        return query
    if (not isinstance(filters, list)):
        filters = [filters]
    for filter in filters:
        query = query.filter(filter)
    return query
