X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b74fa4eb15c62d11fe0fa2b1015571c90681dd86..084f20588e607aa9ae3ed280b6a2f0349b6a3200:/src/search/fields.py diff --git a/src/search/fields.py b/src/search/fields.py index e2cfb5463..c27cce166 100755 --- a/src/search/fields.py +++ b/src/search/fields.py @@ -4,7 +4,7 @@ # from django import forms from django.forms.utils import flatatt -from django.utils.encoding import smart_unicode +from django.utils.encoding import smart_text from django.utils.safestring import mark_safe from json import dumps @@ -21,7 +21,7 @@ class JQueryAutoCompleteWidget(forms.TextInput): final_attrs = self.build_attrs(self.attrs, attrs) final_attrs["name"] = name if value: - final_attrs['value'] = smart_unicode(value) + final_attrs['value'] = smart_text(value) if 'id' not in self.attrs: final_attrs['id'] = 'id_%s' % name