django
django copied to clipboard
update the decorator and get_action_choices to group actions by group fixing #33977
We can introduce <optgroup>
s in the Django action selector. This can easily be done by slightly extending the decorator with a group, and rewriting the logic of get_action_choices
to introduce groups through a defaultdict
.