{% extends 'home.html' %}
{% block content %}

Booking history

{% for book in bookings %}
booking id:{{ book.booking_id }}source:{{ book.source }}destination:{{ book.destination }}date of journy:{{ book.departure_date }}amount:{{ book.amount }}
{% if today.day < book.departure_date.day and today.month <= book.departure_date.month and today.year <= book.departure_date.year %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %}
{% endfor %} {% endblock %}