Skip to content

Commit 62435e5

Browse files
authored
Book detail get author using get_absolute_url (mdn#91)
1 parent 72b4fec commit 62435e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎catalog/templates/catalog/book_detail.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<h1>Title: {{ book.title }}</h1>
66

7-
<p><strong>Author:</strong> <a href="{% url 'author-detail' book.author.pk %}">{{ book.author }}</a></p>
7+
<p><strong>Author:</strong> <a href="{{ book.author.get_absolute_url }}">{{ book.author }}</a></p>
88
<p><strong>Summary:</strong> {{ book.summary }}</p>
99
<p><strong>ISBN:</strong> {{ book.isbn }}</p>
1010
<p><strong>Language:</strong> {{ book.language }}</p>

0 commit comments

Comments
 (0)