X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/18aa8ca52202003e5628a882f3469a04d905cc05..0b270a76ad73162f894285c360a0ee87fa84e536:/src/search/views.py diff --git a/src/search/views.py b/src/search/views.py index 2f9adab36..dc7559fc9 100644 --- a/src/search/views.py +++ b/src/search/views.py @@ -116,6 +116,8 @@ def hint(request, mozhint=False, param='term'): ]) if len(data) < limit: infos = infopages.models.InfoPage.objects.filter( + published=True, + findable=True, title_pl__iregex='\m' + prefix).only('title', 'id', 'slug') data.extend([ {