<input
   type="{{ widget.type }}"
   name="{{ widget.name }}"
   class="form-check-input"
   {% if widget.value != None %}
      value="{{ widget.value|stringformat:'s' }}"
   {% endif %}
   {% include "django/forms/widgets/attrs.html" %}
>
