From 88bfef0188d95581cd0718913f3051ef084c1712 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 26 Jan 2016 11:48:50 +0100 Subject: [PATCH] minor fix (self_is_set) --- src/catalogue/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/catalogue/views.py b/src/catalogue/views.py index 71b1de320..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) -- 2.20.1