fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3c0d04a
)
fix findable
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 5 Jun 2023 11:17:45 +0000
(13:17 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 5 Jun 2023 11:17:45 +0000
(13:17 +0200)
src/search/forms.py
patch
|
blob
|
history
diff --git
a/src/search/forms.py
b/src/search/forms.py
index
1e680fa
..
edbc9d3
100644
(file)
--- 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(),
'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(),
'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
}
'art': picture.models.Picture.objects.all(),
# art pieces
}