X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/42f15d8ea53cbf60de23336f18e01efd2f0fe484..102acc0b6eb715826f26b5082611604cf6ebe240:/src/search/views.py?ds=sidebyside diff --git a/src/search/views.py b/src/search/views.py index f797d9f0d..6066cd97a 100644 --- a/src/search/views.py +++ b/src/search/views.py @@ -37,6 +37,7 @@ def get_hints(prefix, user=None, limit=10): 'url': author.get_absolute_url(), 'img': get_thumbnail(author.photo, '72x72', crop='top').url if author.photo else '', 'slug': author.slug, + 'id': author.id, } for author in authors[:limit - len(data)] ]) @@ -62,6 +63,7 @@ def get_hints(prefix, user=None, limit=10): 'label': tag.name, 'url': tag.get_absolute_url(), 'slug': tag.slug, + 'id': tag.id, } for tag in tags[:limit - len(data)] ]) @@ -90,7 +92,7 @@ def get_hints(prefix, user=None, limit=10): 'author': author_str, 'url': b.get_absolute_url(), 'img': get_thumbnail(b.cover_clean, '72x72').url if b.cover_clean else '', - 'slug': book.slug, + 'slug': b.slug, } ) if len(data) < limit: