def filter(self, table, volume_types, filter_string):
        """Naive case-insensitive search."""
        query = filter_string.lower()
        return [volume_type for volume_type in volume_types
                if query in volume_type.name.lower()]
def filter ( self , table , volume_types , filter_string ) : query = filter_string . lower ( ) return [ volume_type for volume_type in volume_types if query in volume_type . name . lower ( ) ]
Naive case-insensitive search.