X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/231158eaffe94dc4cb46601ec229318c2266758a..24cd92ea6b4c667b7eb30082d7b24166692ce6dc:/src/search/views.py?ds=inline diff --git a/src/search/views.py b/src/search/views.py index 20b5e8823..d105be6e9 100644 --- a/src/search/views.py +++ b/src/search/views.py @@ -115,7 +115,7 @@ def hint(request): break limit -= 1 data.append({ - 'label': b.title, + 'label': '%s, %s' % (b.title, b.author_unicode()), 'category': _('book'), 'id': b.id, 'url': b.get_absolute_url() @@ -135,7 +135,7 @@ def main(request): query = ' '.join(query.split()) # filter out private use characters import unicodedata - query = ''.join(ch for ch in query if unicodedata.category(ch) == 'Co') + query = ''.join(ch for ch in query if unicodedata.category(ch) != 'Co') if len(query) < 2: return render_to_response(