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