From: Radek Czajka Date: Mon, 5 Jun 2023 11:17:45 +0000 (+0200) Subject: fix findable X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/8f031335a8a0dabceec381b89eb0cbbcb2f4b637 fix findable --- 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 }