def init_search(self):
    '\n            Init search\n        '
    if self.column_searchable_list:
        for p in self.column_searchable_list:
            if isinstance(p, string_types):
                p = self.model._fields.get(p)
            if (p is None):
                raise Exception('Invalid search field')
            field_type = type(p)
            if (field_type not in self.allowed_search_types):
                raise Exception(('Can only search on text columns. ' + ('Failed to setup search for "%s"' % p)))
            self._search_fields.append(p)
    return bool(self._search_fields)
Init search
def init_search(self):
    '\n            \n        '
    if self.column_searchable_list:
        for p in self.column_searchable_list:
            if isinstance(p, string_types):
                p = self.model._fields.get(p)
            if (p is None):
                raise Exception('Invalid search field')
            field_type = type(p)
            if (field_type not in self.allowed_search_types):
                raise Exception(('Can only search on text columns. ' + ('Failed to setup search for "%s"' % p)))
            self._search_fields.append(p)
    return bool(self._search_fields)