From 8f031335a8a0dabceec381b89eb0cbbcb2f4b637 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 5 Jun 2023 13:17:45 +0200 Subject: [PATCH 1/1] fix findable --- src/search/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search/forms.py b/src/search/forms.py index 1e680fa4f..edbc9d3b2 100644 --- a/src/search/forms.py +++ b/src/search/forms.py @@ -85,9 +85,9 @@ class SearchFilters(forms.Form): 'theme': catalogue.models.Tag.objects.filter(category='theme'), 'genre': catalogue.models.Tag.objects.filter(category='genre'), 'collection': catalogue.models.Collection.objects.all(), - 'book': catalogue.models.Book.objects.all(), #findable + 'book': catalogue.models.Book.objects.filter(findable=True), 'pdbook': pdcounter.models.BookStub.objects.all(), - 'snippet': catalogue.models.Snippet.objects.all(), + 'snippet': catalogue.models.Snippet.objects.filter(book__findable=True), 'art': picture.models.Picture.objects.all(), # art pieces } -- 2.20.1