From: Jan Szejko Date: Mon, 23 Oct 2017 13:03:21 +0000 (+0200) Subject: add book authors in hint list X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/24cd92ea6b4c667b7eb30082d7b24166692ce6dc?ds=inline add book authors in hint list --- 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()