Commit 0d1a8ce2 authored by Agu Syquia's avatar Agu Syquia

Updated authors_details.html

Added a button that redirects to authors/pk/details/edit.
parent bd2b02f9
......@@ -8,7 +8,10 @@
</h1>
{{ object.age }}<br>
{{ object.nationality }}<br>
{{ object.bio }}<br><br>
{{ object.bio }}<br>
<button type = "button">
<a href="{{ object.get_absolute_url }}/edit/">Edit Author</a>
</button><br><br>
Books by {{ object.first_name }} {{ objects.last_name }} I love:<br>
{# https://stackoverflow.com/questions/70442828/django-object-list-from-listview-with-two-models #}
{% for object in author.books_set.all %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment