'Modify query to filter self.model_class by state.'

def filter(self, trans, user, query, column_filter):

    if (column_filter == 'All'):
        pass
    elif (column_filter in ['True', 'False']):
        query = query.filter((self.model_class.deleted == (column_filter == 'True')))
    return query
