<-- Listing 9.20--> {% extends "base_generic.html" %} {% block content %}

Список авторов в БД

{% if author_list %} {% for author in author_list.all %}

{{ author.first_name}} {{author.last_name}}, Родился-{{author.date_of_birth}}, Умер-{{author.date_of_death}}

{% endfor %} {% else %}

В базе данных нет авторов

{% endif %} {% endblock %}