{% extends "base.html" %} {% block content %}

Books

{% for book in books %} {{book.title}}; {{book.author.last_name}}{% if book.author.first_name %}, {{book.author.first_name}}{% endif %}.
{% empty %} There were no books {% endfor %}

{% endblock content %}