Ok thanks,
i just released that i have made a mistake. so basically here are my template.html and view.py
i think there is a mistake in my view.py the display result is not what i was looking for. can't seem to figure it out.
template.html
<table id="t01" >
<tr>
<th>Select to approve leave</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Department</th>
<th>Leave Type</th>
<th>Details</th>
<th>Start Date</th>
<th>End Date</th>
<th>Total working days</th>
<th># of leave left</th>
<th> Department Head Authorization</th>
<th>Authorize By</th>
<th> Remarks</th>
<th>Authorized Date</th>
</tr>
{%for a in new_leave%}
<tr>
<td><a href ="/authorized_Leave/{{
a.id}}/"><input type="checkbox" onClick="parent.location='#'" > </a> </td>
<td>{{a.first_name}}</td>
<td>{{a.last_name}}</td>
<td>{{a.position}}</td>
<td>{{a.department}}</td>
<td>{{a.leave_type}}</td>
<td>{{a.specify_details}}</td>
<td>{{a.start_date}}</td>
<td>{{a.end_date}}</td>
<td>{{a.total_working_days}}</td>
<td>{{a.total_Leave_Left}}</td>
<td>{{a.department_head_authorization}}</td>
<td>{{a.authorized_by}}</td>
<td>{{a.remarks}}</td>
<td>{{a.authorization_date}}</td>
</tr>
{%endfor%}
</table>