We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95a8415 commit 9d71922Copy full SHA for 9d71922
netbox/templates/django/forms/widgets/checkbox.html
@@ -1,6 +1,7 @@
1
{% comment %}
2
Include a hidden field of the same name to ensure that unchecked checkboxes
3
- are always included in the submitted form data.
+ are always included in the submitted form data. Omit fields names
4
+ _selected_action to avoid breaking the admin UI.
5
{% endcomment %}
-<input type="hidden" name="{{ widget.name }}" value="">
6
+{% if widget.name != '_selected_action' %}<input type="hidden" name="{{ widget.name }}" value="">{% endif %}
7
{% include "django/forms/widgets/input.html" %}
0 commit comments