{% load helpers %} {% if location is not None %} {% with ancestors=location.ancestors %} {% endwith %} {% else %} {{ location|placeholder }} {% endif %}