Fixed UnicodeDecodeError in @@autocomplete-search
This commit is contained in:
parent
8d12949be1
commit
98ad2c7467
|
@ -5,6 +5,9 @@ Changelog
|
|||
1.0 (unreleased)
|
||||
----------------
|
||||
|
||||
- Fixed UnicodeDecodeError in @@autocomplete-search
|
||||
[vincentfretin]
|
||||
|
||||
- Internationalized two messages.
|
||||
[vincentfretin]
|
||||
|
||||
|
|
|
@ -268,5 +268,5 @@ class AutocompleteSearch(BaseAutocompleteSearch):
|
|||
else:
|
||||
terms = set()
|
||||
|
||||
return '\n'.join(["|".join((t.token, t.title or t.token, t.portal_type, t.url, t.extra))
|
||||
return u'\n'.join([u"|".join((t.token, t.title or t.token, t.portal_type, t.url, t.extra))
|
||||
for t in sorted(terms, key=lambda t: t.title)])
|
||||
|
|
Reference in New Issue