Fixes #1153: UnicodeEncodeError when searching for non-ASCII characters on Python 2

This commit is contained in:
Jeremy Stretch 2017-05-09 22:40:46 -04:00
parent 3844f70a4d
commit effda88b51

View File

@ -191,7 +191,7 @@ class SearchView(View):
results.append({
'name': queryset.model._meta.verbose_name_plural,
'table': table,
'url': '{}?q={}'.format(reverse(url), form.cleaned_data['q'])
'url': u'{}?q={}'.format(reverse(url), form.cleaned_data['q'])
})
return render(request, 'search.html', {