'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 [v for (k, v) in self.model_class.states.items()]):
        query = query.filter((self.model_class.state == column_filter))
    return query
