Commit c8b9b244abef9e79b01e9770b7ced19505f400a4
1 parent
53ec926b
Exists in
master
and in
39 other branches
Getting plain q from form
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
src/search/forms.py
| @@ -93,9 +93,7 @@ class ColabSearchForm(SearchForm): | @@ -93,9 +93,7 @@ class ColabSearchForm(SearchForm): | ||
| 93 | 93 | ||
| 94 | 94 | ||
| 95 | if self.cleaned_data['q']: | 95 | if self.cleaned_data['q']: |
| 96 | - q = unicodedata.normalize( | ||
| 97 | - 'NFKD', unicode(self.cleaned_data.get('q')) | ||
| 98 | - ).encode('ascii', 'ignore') | 96 | + q = self.cleaned_data.get('q') |
| 99 | 97 | ||
| 100 | dismax_opts = { | 98 | dismax_opts = { |
| 101 | 'q.alt': '*.*', | 99 | 'q.alt': '*.*', |