{% extends "base.html" %} {% block meta-title %}Books (with counts){% endblock %} {% block nav-menu-items %} {% with True as books_books_with_counts_is_active %} {% include "snippets/menu_items.html" %} {% endwith %} {% endblock nav-menu-items %} {% block main-content %}
Book | Authors | Publisher | Number of pages | Price | Price per page |
---|---|---|---|---|---|
{{ book.title }} | {% for author in book.authors.all %}{{ author.name }},{% endfor %} | {{ book.publisher.name }} | {{ book.pages }} | {{ book.price }} | {{ book.price_per_page }} |