{% if field.data and field.data.get_path() and field.data.get_path() != "None" %} {% set url = field.data.get_path() %} {% else %} {% endif %}