leave only authors in information about work
authorJan Szejko <janek37@gmail.com>
Wed, 6 Jun 2018 12:14:51 +0000 (14:14 +0200)
committerJan Szejko <janek37@gmail.com>
Wed, 6 Jun 2018 12:14:51 +0000 (14:14 +0200)
src/catalogue/templates/catalogue/book_detail.html
src/catalogue/views.py

index 26fe167..3b13624 100644 (file)
 
 
   <h2>{% trans "Information about the work" %}</h2>
-  {% for tag in tags %}
+  {% for author in book.authors %}
     <div class="white-box">
-      <a style="display:block" href="{{ tag.get_absolute_url }}">
-        {% ssi_include 'catalogue_tag_box' pk=tag.pk %}
+      <a style="display:block" href="{{ author.get_absolute_url }}">
+        {% ssi_include 'catalogue_tag_box' pk=author.pk %}
       </a>
     </div>
   {% endfor %}
index c545cdf..dc6de7b 100644 (file)
@@ -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))