From 24791e323ca709aa1c193096e6e4455390f7ac72 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 27 Jan 2012 16:51:58 +0100 Subject: [PATCH 1/1] fix --- apps/search/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/search/forms.py b/apps/search/forms.py index e7051b86e..59b39ed65 100755 --- a/apps/search/forms.py +++ b/apps/search/forms.py @@ -15,7 +15,7 @@ class SearchForm(forms.Form): 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['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') -- 2.20.1