{% extends "base.html" %} {% block title %}Book store{% endblock %} {% block content %}

Book store

{% for book in books %} {% if book.in_stock %} {% else %} {% endif %} {% endfor %}
{{ forloop.counter }} {{ book.title }} (pag. {{ book.pages }}) {% for author in book.authors.all %} {{ author }} {% if not forloop.last %},{% endif %} {% endfor %} {{ book.publisher }} {{ book.publication_date|date:"d/m/Y" }}In stockNon in stock
{% endblock %}