1 parent 72b4fec commit 62435e5Copy full SHA for 62435e5
1 file changed
catalog/templates/catalog/book_detail.html
@@ -4,7 +4,7 @@
4
5
<h1>Title: {{ book.title }}</h1>
6
7
-<p><strong>Author:</strong> <a href="{% url 'author-detail' book.author.pk %}">{{ book.author }}</a></p>
+<p><strong>Author:</strong> <a href="{{ book.author.get_absolute_url }}">{{ book.author }}</a></p>
8
<p><strong>Summary:</strong> {{ book.summary }}</p>
9
<p><strong>ISBN:</strong> {{ book.isbn }}</p>
10
<p><strong>Language:</strong> {{ book.language }}</p>
0 commit comments