mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 17:59:11 -06:00
Fixes #1153: UnicodeEncodeError when searching for non-ASCII characters on Python 2
This commit is contained in:
parent
3844f70a4d
commit
effda88b51
@ -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', {
|
||||
|
Loading…
Reference in New Issue
Block a user