X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3badd77f743883992829a1174eef7c8d5e851766..ffb9b20e6675a618694fb160c72df285f2666be8:/apps/search/forms.py diff --git a/apps/search/forms.py b/apps/search/forms.py index e7051b86e..60521f96a 100755 --- a/apps/search/forms.py +++ b/apps/search/forms.py @@ -14,8 +14,8 @@ class SearchForm(forms.Form): def __init__(self, source, *args, **kwargs): kwargs['auto_id'] = False super(SearchForm, self).__init__(*args, **kwargs) - self.fields['q'].widget.attrs['id'] = _('search') - self.fields['q'].widget.attrs['autocomplete'] = _('off') - self.fields['q'].widget.attrs['data-source'] = _(source) + self.fields['q'].widget.attrs['id'] = 'search' + self.fields['q'].widget.attrs['autocomplete'] = 'off' + self.fields['q'].widget.attrs['data-source'] = source if not 'q' in self.data: self.fields['q'].widget.attrs['title'] = _('title, author, theme/topic, epoch, kind, genre, phrase')