Skip to content

Commit 9d71922

Browse files
committed
Fixes #14392: Fix admin UI bulk actions
1 parent 95a8415 commit 9d71922

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% comment %}
22
Include a hidden field of the same name to ensure that unchecked checkboxes
3-
are always included in the submitted form data.
3+
are always included in the submitted form data. Omit fields names
4+
_selected_action to avoid breaking the admin UI.
45
{% endcomment %}
5-
<input type="hidden" name="{{ widget.name }}" value="">
6+
{% if widget.name != '_selected_action' %}<input type="hidden" name="{{ widget.name }}" value="">{% endif %}
67
{% include "django/forms/widgets/input.html" %}

0 commit comments

Comments
 (0)