From: Jan Szejko Date: Mon, 18 Dec 2017 14:05:20 +0000 (+0100) Subject: fix weird bug with author hints X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/fe14330cee64ab56c479ff83a4eb29a214c68d8f?ds=inline;hp=05e5b36046d980e84776978660f420b008db4879 fix weird bug with author hints --- 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,