{% if field.field.widget.bootstrap %} {% with bootstrap=field.field.widget.bootstrap %} {% with prepend=prepend|default:bootstrap.prepend|default:"" append=append|default:bootstrap.append|default:"" %} {% include "bootstrap_toolkit/field_prepend_append.html" %} {% endwith %} {% endwith %} {% else %} {% if prepend or append %} {% include "bootstrap_toolkit/field_prepend_append.html" %} {% else %} {{ field }} {% endif %} {% endif %}