add book authors in hint list
authorJan Szejko <janek37@gmail.com>
Mon, 23 Oct 2017 13:03:21 +0000 (15:03 +0200)
committerJan Szejko <janek37@gmail.com>
Mon, 23 Oct 2017 13:41:00 +0000 (15:41 +0200)
src/search/views.py

index 5b65a30..d105be6 100644 (file)
@@ -115,7 +115,7 @@ def hint(request):
                 break
             limit -= 1
             data.append({
                 break
             limit -= 1
             data.append({
-                'label': b.title,
+                'label': '<cite>%s</cite>, %s' % (b.title, b.author_unicode()),
                 'category': _('book'),
                 'id': b.id,
                 'url': b.get_absolute_url()
                 'category': _('book'),
                 'id': b.id,
                 'url': b.get_absolute_url()