From 24cd92ea6b4c667b7eb30082d7b24166692ce6dc Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Mon, 23 Oct 2017 15:03:21 +0200 Subject: [PATCH] add book authors in hint list --- src/search/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search/views.py b/src/search/views.py index 5b65a3006..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() -- 2.20.1