{% for u in users %} {% if u.is_active %}{{ u }}{% else %}{{ u }}{% endif %} {% empty %} This project does not have any members. {% endfor %}