diff --git a/sigi/apps/utils/__init__.py b/sigi/apps/utils/__init__.py index eac5367..c670bbb 100644 --- a/sigi/apps/utils/__init__.py +++ b/sigi/apps/utils/__init__.py @@ -20,6 +20,10 @@ class SearchField(models.TextField): kwargs['editable'] = False super(self.__class__, self).__init__(*args, **kwargs) + def deconstruct(self): + name, path, args, kwargs = super(SearchField, self).deconstruct() + kwargs['field_names'] = self.field_names + return name, path, args, kwargs def to_ascii(txt, codif='utf-8'): if not isinstance(txt, basestring):