code: def filter(self, table, group_types, filter_string):
          
          query = filter_string.lower()
          return [group_type for group_type in group_types
                  if query in group_type.name.lower()]
docs: Naive case-insensitive search.