{% comment %} Include a hidden field of the same name to ensure that unchecked checkboxes are always included in the submitted form data. Omit fields names _selected_action to avoid breaking the admin UI. {% endcomment %} {% if widget.name != '_selected_action' %}{% endif %} {% include "django/forms/widgets/input.html" %}