forms.Widget.value_from_datadict()

value_from_datadict(data, files, name) [source]

Given a dictionary of data and this widget’s name, returns the value of this widget. files may contain data coming from request.FILES. Returns None if a value wasn’t provided. Note also that value_from_datadict may be called more than once during handling of form data, so if you customize it and add expensive processing, you should implement some caching mechanism yourself.

doc_Django
2016-10-09 18:37:13
Comments
Leave a Comment

Please login to continue.