{% extends "home/main_dashboard.html" %} {% block dashboard %} {% load custom_tags %} Back {% if 'faculty' in request.session %}

S No.Name

Status

{% for student in section_data.students_set.all %}

{{ forloop.counter }}.{{ student.name }}

{% for attendance in attendance_data %} {% with attendance.student|split:"," as attndnc %} {% with student.pk|int_to_str as studnt_id %} {% if studnt_id in attndnc %}
{{ ' Present ' }}
{% else %}
{{ ' Absent ' }}
{% endif %} {% endwith %} {% endwith %} {% endfor %}
{% endfor %}
{% else %}

You are not authorised to access the page.

{% endif %} {% endblock %}