fixed author name into heading and page title in author_detail

parent 9d4218da
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %} {% load static %}
{% block title %} {{ object.title }}{% endblock %} {% block title %} {{ object.first_name }} {{ object.last_name }} {% endblock %}
{% block heading %} {{ object.title }} {% endblock %} {% block heading %} {{ object.first_name }} {{ object.last_name }} {% endblock %}
{% block content%} {% block content%}
<p>{{ object.first_name }} {{ object.last_name }}</p>
<p>{{ object.age }}</p> <p>{{ object.age }}</p>
<p>{{ object.nationality }}</p> <p>{{ object.nationality }}</p>
<p>{{ object.bio }}</p> <p>{{ object.bio }}</p>
<h4>Books by {{ object.first_name }} {{ object.last_name }} I love:</h4> <p>Books by {{ object.first_name }} {{ object.last_name }} I love:</p>
{% for books in object.books_set.all %} {% for books in object.books_set.all %}
<li><a href="http://localhost:8000/books/{{ books.pk }}/details">{{ books.title }}</a></li> <li><a href="http://localhost:8000/books/{{ books.pk }}/details">{{ books.title }}</a></li>
......
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