From: Radek Czajka Date: Wed, 6 Aug 2025 13:23:57 +0000 (+0200) Subject: add ids in hints X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/c1c30568a2ecc705db04d7f0c94749e55cb41b47?ds=inline;hp=bbf9e601991d5d90ed55ee9d5c9d3018afc95d3a add ids in hints --- diff --git a/src/search/views.py b/src/search/views.py index 02204af6b..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)] ])