Fundraising in PDF.
[wolnelektury.git] / src / search / views.py
index 2f9adab..dc7559f 100644 (file)
@@ -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([
             {