MCPcopy
hub / github.com/django/django / _widget_data_value

Method _widget_data_value

django/forms/forms.py:221–225  ·  view source on GitHub ↗
(self, widget, html_name)

Source from the content-addressed store, hash-verified

219 return "initial-%s" % self.add_prefix(field_name)
220
221 def _widget_data_value(self, widget, html_name):
222 # value_from_datadict() gets the data from the data dictionaries.
223 # Each widget type knows how to retrieve its own data, because some
224 # widgets split data over several HTML fields.
225 return widget.value_from_datadict(self.data, self.files, html_name)
226
227 @property
228 def template_name(self):

Callers 3

as_widgetMethod · 0.80
dataMethod · 0.80
_has_changedMethod · 0.80

Calls 1

value_from_datadictMethod · 0.45

Tested by

no test coverage detected