fix
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 27 Jan 2012 15:51:58 +0000 (16:51 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 27 Jan 2012 15:51:58 +0000 (16:51 +0100)
apps/search/forms.py

index e7051b8..59b39ed 100755 (executable)
@@ -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')
         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')
         if not 'q' in self.data:
             self.fields['q'].widget.attrs['title'] = _('title, author, theme/topic, epoch, kind, genre, phrase')