﻿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
18337	django.forms.BoundField should be injectable within django.forms.Form	eamonnfaherty	nobody	"I would like to create the following html from a single reusable field

{{{
<div class=""contactnumber colourless"" id=""id_friends_parent"">
    <input type=""checkbox"" name=""friends"" id=""id_friends"">
    <label for=""id_friends"">Friends (156)</label>
</div>
<script type=""text/javascript"">
    $('#id_friends').click(function() { $('#id_friends_parent').removeClass('colourless'); if (this.checked) { console.log('checked'); } else { console.log('not checked');$('#id_friends_parent').addClass('colourless'); } });
</script>
}}}

In order to keep the label html in the BoundField and the widget html in the widget and to allow a mechanism for adding wrapping html to a field widget it would seem elegant to allow access to BoundField by making BoundField an overridable property in the django.forms.BaseForm class in the same way the widget property is overridable in the Field class."	New feature	closed	Forms	1.3	Normal	wontfix		eamonnfaherty	Design decision needed	1	0	0	0	0	0
