A list_display column containing a checkbox widget.
(self, obj)
| 1057 | ) |
| 1058 | |
| 1059 | def action_checkbox(self, obj): |
| 1060 | """ |
| 1061 | A list_display column containing a checkbox widget. |
| 1062 | """ |
| 1063 | attrs = { |
| 1064 | "class": "action-select", |
| 1065 | "aria-label": format_html( |
| 1066 | _("Select this object for an action - {}"), str(obj) |
| 1067 | ), |
| 1068 | } |
| 1069 | checkbox = forms.CheckboxInput(attrs, lambda value: False) |
| 1070 | return checkbox.render(helpers.ACTION_CHECKBOX_NAME, str(obj.pk)) |
| 1071 | |
| 1072 | @staticmethod |
| 1073 | def _get_action_description(func, name): |
nothing calls this directly
no test coverage detected