{% load static %} {% for item in appllication_list %} {% if item.employee.employee_code %} {% else %} {% endif %} {% endfor %}