Skip to content

Commit

Permalink
#16136: Remove obsolete accommodation for Django admin UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Nov 25, 2024
1 parent 02cbdc1 commit dd29c0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions netbox/templates/django/forms/widgets/checkbox.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% 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.
are always included in the submitted form data.
{% endcomment %}
{% if widget.name != '_selected_action' %}<input type="hidden" name="{{ widget.name }}" value="">{% endif %}
<input type="hidden" name="{{ widget.name }}" value="">
<input type="checkbox" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value|stringformat:'s' }}"{% endif %} {% include "django/forms/widgets/attrs.html" %} class="form-check-input{% if 'class' in widget.attrs %} {{ widget.attrs.class }}{% endif %}">

0 comments on commit dd29c0e

Please sign in to comment.