﻿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
30998	Make it easier to use the model instance in ChoiceWidget.create_option()	Jon Dufresne	nobody	"I often find myself needing to add extra attributes to subwdiget HTML elements that depend on the model instance object. For example, HTML `data-*` attributes.

Others have had similar needs and created their own solutions. For example: <http://srcmvn.com/blog/2013/01/15/django-advanced-model-choice-field/>.

As this isn't built-in, there have been some backward incompatible changes on some releases: #27758.

This ticket proposes to make this feature built-in to remove the need for third party applications to copy this boilerplate.

---

Right now, the `ModelChoiceField.iterator` and `ModelChoiceIterator aren't documented. We could take this opportunity to do so if desired.
"	New feature	new	Forms	dev	Normal				Unreviewed	0	0	0	0	0	0
