﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26927	Subwidgets not passed required and disabled attributes in BoundField.__iter__()	Jon Dufresne	nobody	"Similar in spirit to #20555.

I have a form with a field like:

{{{
my_field = forms.ChoiceField(widget=forms.RadioSelect, choice=get_choices(), disabled=True)
}}}

The field's radio buttons are rendered in a template by iterating over the `BoundField`:

{{{
{% for choice in form.my_field %}
  {{ choice.tag }}
{% endfor %}
}}}

The rendered HTML input is not disabled. This is because [https://github.com/django/django/blob/bc1e9e823b7dd3fa68dc1678edeb09e2ae1a990c/django/forms/boundfield.py#L45-L55 BoundField.__iter__()] does not pass the `required` and `disabled` attributes to subwidgets.

Contrast this with [https://github.com/django/django/blob/bc1e9e823b7dd3fa68dc1678edeb09e2ae1a990c/django/forms/boundfield.py#L75-L103 BoundField.as_widget()] where the values are passed. 

Perhaps this attribute building should be factored to a utility function out and shared across these two functions."	Bug	closed	Forms	dev	Normal	fixed	1.10		Ready for checkin	1	0	0	0	0	0
