From: Jan Szejko Date: Wed, 6 Jun 2018 12:14:51 +0000 (+0200) Subject: leave only authors in information about work X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/65539dc426776df1657f1fccaf43b3e531e506df?ds=sidebyside;hp=e79ef640becb4b59dba11c1dfcce0ea87000919b leave only authors in information about work --- 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))