django/form/widget.py line 258 (class Widget):
{{{
def value_from_datadict(self, data, files, name):
"""
Given a dictionary of data and this widget's name, return the
value
of this widget or None if it's not provided.
"""
return data.get(name)
}}}
then either the comment needs to trim `or None if it's not provided` or
the code changed to `data.get(name, None)`
--
Ticket URL: <https://code.djangoproject.com/ticket/33069>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
If works as documented with a dict, see
[https://docs.python.org/3/library/stdtypes.html?highlight=dict#dict.get
dict.get() docs].
--
Ticket URL: <https://code.djangoproject.com/ticket/33069#comment:1>