{% with id=widget.attrs.id %}{% if not widget.attrs.has_div %}
{% endif %} {% if not widget.attrs.has_div %}
{% endif %}{% endwith %}