fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
149ca28
)
fix
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 18 Nov 2022 14:30:05 +0000
(15:30 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 18 Nov 2022 14:30:05 +0000
(15:30 +0100)
src/catalogue/templatetags/catalogue_tags.py
patch
|
blob
|
history
diff --git
a/src/catalogue/templatetags/catalogue_tags.py
b/src/catalogue/templatetags/catalogue_tags.py
index
2ca0a2d
..
7189e95
100644
(file)
--- a/
src/catalogue/templatetags/catalogue_tags.py
+++ b/
src/catalogue/templatetags/catalogue_tags.py
@@
-535,7
+535,7
@@
def content_warning(book):
@register.inclusion_tag('catalogue/preview_ad.html', takes_context=True)
def preview_ad(context):
@register.inclusion_tag('catalogue/preview_ad.html', takes_context=True)
def preview_ad(context):
- book = Book.objects.filter(preview=True).first()
+ book = Book.objects.filter(p
arent=None, p
review=True).first()
return {
'accessible': book.is_accessible_to(context['request'].user),
'book': book,
return {
'accessible': book.is_accessible_to(context['request'].user),
'book': book,
@@
-543,7
+543,7
@@
def preview_ad(context):
@register.inclusion_tag('catalogue/preview_ad_homepage.html', takes_context=True)
def preview_ad_homepage(context):
@register.inclusion_tag('catalogue/preview_ad_homepage.html', takes_context=True)
def preview_ad_homepage(context):
- book = Book.objects.filter(preview=True).first()
+ book = Book.objects.filter(p
arent=None, p
review=True).first()
return {
'accessible': book.is_accessible_to(context['request'].user),
'book': book,
return {
'accessible': book.is_accessible_to(context['request'].user),
'book': book,