{% load widget_tweaks %} {% if field.is_hidden %} {{ field }} {% else %} {% comment %} Make the field widget type available to templates so we can mark-up checkbox and radio inputs differently to other widgets. {% endcomment %} {% block control_group %}