﻿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
32917	Add an internal _value_from_datadict() method to BaseForm	Chris Jerdonek	Chris Jerdonek	"I noticed that some call sites can be simplified if an internal method called something like `_value_from_datadict()` is added to `BaseForm`. Here is one of the call sites: https://github.com/django/django/blob/6f60fa97b0b501ef7cc77e16392654bf27ec8db3/django/forms/boundfield.py#L121

Its implementation can look something like this:

{{{#!python
def _value_from_datadict(self, field, html_name):
    return field.widget.value_from_datadict(self.data, self.files, html_name)
}}}

One reason this is nicer is that callers don't have to know about the form's `self.data` and `self.files` dicts. They can just access a method on the form, which encapsulates the data dictionaries.
"	Cleanup/optimization	closed	Forms	dev	Normal	fixed			Accepted	1	0	0	0	1	0
