X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..23bc6c4afa7b6c26d4f6c817b14b0f2cdeaf7f1e:/src/catalogue/views.py diff --git a/src/catalogue/views.py b/src/catalogue/views.py index 084396bd4..e71895f0d 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -193,7 +193,8 @@ def tagged_object_list(request, tags='', gallery=False): 'sort_key_author', 'title') else: objects = all_books.order_by('sort_key_author', 'title') - related_book_tags = get_top_level_related_tags(tags) + # WTF: was outside if, overwriting value assigned if shelf_is_set + related_book_tags = get_top_level_related_tags(tags) fragments = models.Fragment.objects.filter(book__in=all_books) @@ -720,6 +721,7 @@ def tag_catalogue(request, category): 'tags': tags, 'best': best, 'title': constants.CATEGORIES_NAME_PLURAL[category], + 'whole_category': constants.WHOLE_CATEGORY[category], })