Commit 00fc0e96 authored by Gabriel G. Garrero's avatar Gabriel G. Garrero

Updated author_details.html

parent 111bd104
......@@ -2,8 +2,28 @@
{% load static %}
{% block title %}{% endblock %}
{% block title %}{{ object.first_name }} {{ object.last_name }}{% endblock %}
{% block content %}
<h1>{{ object.first_name }} {{ object.last_name }}</h1>
<p>{{ object.age }}</p>
<p>{{ object.nationality }}</p>
<p>{{ object.bio }}</p>
<h2>Books by {{ object.first_name }} {{ object.last_name }} I love:</h2>
<ul>
{% for book in object.books_set.all %}
<li>
<a href = "{{ book.get_absolute_url }}">{{ book.title }}</a>
</li>
{% endfor %}
</ul>
<a href = '/bookshelf/home/'>Home</a>
<a href = '/bookshelf/books/'>Books</a>
<a href = '/bookshelf/authors/'>Authors</a>
{% endblock %}
\ No newline at end of file
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