X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6d42bc478e3d1bd90eb294464748c21e4de0fc63..af339a5c1a69ec22a6f1d5940cde313953948368:/src/search/fields.py?ds=sidebyside diff --git a/src/search/fields.py b/src/search/fields.py old mode 100755 new mode 100644 index 10afd5914..07e50d7ba --- a/src/search/fields.py +++ b/src/search/fields.py @@ -3,7 +3,7 @@ # from django import forms from django.forms.utils import flatatt -from django.utils.encoding import smart_text +from django.utils.encoding import smart_str from django.utils.safestring import mark_safe from json import dumps @@ -20,7 +20,7 @@ class JQueryAutoCompleteWidget(forms.TextInput): final_attrs = self.build_attrs(self.attrs, attrs) final_attrs["name"] = name if value: - final_attrs['value'] = smart_text(value) + final_attrs['value'] = smart_str(value) if 'id' not in self.attrs: final_attrs['id'] = 'id_%s' % name