Added buttons to edit book and author in the database

parent b6913b4f
......@@ -13,6 +13,7 @@
<p>{{ object.age }}</p>
<p>{{ object.nationality }}</p>
<p>{{ object.bio }}</p>
<p><button onclick="window.location.href = 'edit'">Edit Author</button></p>
<p>Books by {{ object }} I love:</p>
<ul>
{% for book in books %}
......
......@@ -19,6 +19,7 @@
<p>{{ object.year_published }}</p>
<p>{{ object.ISBN }}</p>
<p>{{ object.blurb }}</p>
<p><button onclick="window.location.href = 'edit'">Edit Book</button></p>
{% endblock %}
{% block footer %}
......
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