From 65539dc426776df1657f1fccaf43b3e531e506df Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 6 Jun 2018 14:14:51 +0200 Subject: [PATCH] leave only authors in information about work --- src/catalogue/templates/catalogue/book_detail.html | 6 +++--- src/catalogue/views.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html index 26fe1678c..3b13624a4 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -47,10 +47,10 @@

{% trans "Information about the work" %}

- {% for tag in tags %} + {% for author in book.authors %}
- - {% ssi_include 'catalogue_tag_box' pk=tag.pk %} + + {% ssi_include 'catalogue_tag_box' pk=author.pk %}
{% endfor %} diff --git a/src/catalogue/views.py b/src/catalogue/views.py index c545cdf79..dc6de7b77 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -282,7 +282,6 @@ def book_detail(request, slug): return render_to_response('catalogue/book_detail.html', { 'book': book, - 'tags': book.tags.exclude(category__in=('set', 'theme')), 'book_children': book.children.all().order_by('parent_number', 'sort_key'), 'active_menu_item': 'books', }, context_instance=RequestContext(request)) -- 2.20.1