From fe14330cee64ab56c479ff83a4eb29a214c68d8f Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Mon, 18 Dec 2017 15:05:20 +0100 Subject: [PATCH] fix weird bug with author hints --- src/search/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1