{% load static %}
Количество посещений: {{ accessed.visits_count }}/{{ required_count }}
Договор {% for cheque in accessed.cheques %} Чек за {{ cheque.month }} {% endfor %}Количество посещений: {{ not_accessed.visits_count }}/{{ required_count }}
{% if not_accessed.contract %} Договор {% endif %} {% for cheque in not_accessed.cheques %} Чек за {{ cheque.month }} {% endfor %}