- {% for name, url in related.tags.author %}
- {{ name }}{% if not forloop.last %}, {% endif %}
- {% endfor %}
+ {% for name, slug in related.tags.author %}
+ <a href="{% tag_url 'author' slug %}">{{ name }}</a>{% if not forloop.last %},
+ {% endif %}{% endfor %}{% for title, slug in related.parents %},
+ <a href="{% url book_detail slug %}">{{ title }}</a>{% endfor %}