forms: add extended data source attributes to checkboxes rendering (#54805)

This commit is contained in:
Frédéric Péters 2021-06-12 16:36:26 +02:00
parent 948eb64360
commit edb3b7ea6d
1 changed files with 1 additions and 0 deletions

View File

@ -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):