django__django-14534
BoundWidget.id_for_label ignores id set by ChoiceWidget.options
Verdict: the fix is stated in the issue (Tier A).
By changing the code from above to class BoundWidget: ... def id_for_label(self): return self.data['attrs']['id'] that function behaves as expected.
The text states the fix: “By changing the code from above to class BoundWidget: ... def id_for_label(self): return self.data['attrs']['id'] that function behaves as expected.”
All SWE-bench Verified tasks · more django/django tasks · How the check works