{% extends "home/main_dashboard.html" %} {% block dashboard %} {% load custom_tags %} {% if 'student' in request.session %} {% for attendance in attendance_data %} {% with attendance.student|split:"," as attndnc %} {% with student_data.pk|int_to_str as studnt_id %} {% if studnt_id in attndnc %} {% else %} {% endif %} {% endwith %} {% endwith %} {% endfor %} {% endif %}
Date Status
{{ attendance.attendance_date }}{{ ' Present ' }}{{ ' Absent ' }}
{% endblock %}