X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1801c65004af14a8ed50d60e47d75a415753bbf7..4424d39a5d12ff6e16853b1aca23def0df33cc80:/src/search/views.py diff --git a/src/search/views.py b/src/search/views.py index 64382e24b..309db73f4 100644 --- a/src/search/views.py +++ b/src/search/views.py @@ -75,7 +75,7 @@ def hint(request): limit = 20 authors = Tag.objects.filter( - category='author', name__iregex='\m' + prefix).only('name', 'id', 'slug', 'category') + category='author', name_pl__iregex='\m' + prefix).only('name', 'id', 'slug', 'category') data = [ { 'label': author.name,