From d70cc0d4c0e046decf13289b3fc69f7c209cb191 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 7 Nov 2013 09:58:06 -0200 Subject: [PATCH] Rollback from last commit --- src/search/forms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/search/forms.py b/src/search/forms.py index 4a4a3f9..21cf911 100644 --- a/src/search/forms.py +++ b/src/search/forms.py @@ -93,7 +93,9 @@ class ColabSearchForm(SearchForm): if self.cleaned_data['q']: - q = self.cleaned_data.get('q') + q = unicodedata.normalize( + 'NFKD', self.cleaned_data.get('q') + ).encode('ascii', 'ignore') dismax_opts = { 'q.alt': '*.*', -- libgit2 0.21.2