{% import "bootstrap/_form.html" as bform %} {{ bform.attachment_field(field, class='form-control') }}