forms: add extended data source attributes to checkboxes rendering (#54805)
This commit is contained in:
parent
948eb64360
commit
edb3b7ea6d
|
@ -1490,6 +1490,7 @@ class CheckboxesWidget(Widget):
|
|||
'label': description,
|
||||
'disabled': bool(self.options_with_attributes and option[-1].get('disabled')),
|
||||
'selected': self.is_selected(obj),
|
||||
'options': option[-1] if self.options_with_attributes else None,
|
||||
}
|
||||
|
||||
def _parse(self, request):
|
||||
|
|
Loading…
Reference in New Issue