Fix the documentation of BoundField.value() to reference the correct method name
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15772 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c47b69ba53
commit
32adde7fc9
|
@ -657,7 +657,7 @@ those classes as an argument::
|
||||||
>>> f['message'].css_classes('foo bar')
|
>>> f['message'].css_classes('foo bar')
|
||||||
'foo bar required'
|
'foo bar required'
|
||||||
|
|
||||||
.. method:: BoundField.values()
|
.. method:: BoundField.value()
|
||||||
|
|
||||||
.. versionadded:: 1.3
|
.. versionadded:: 1.3
|
||||||
|
|
||||||
|
@ -667,9 +667,9 @@ by a ``Widget``::
|
||||||
>>> initial = {'subject': 'welcome'}
|
>>> initial = {'subject': 'welcome'}
|
||||||
>>> unbound_form = ContactForm(initial=initial)
|
>>> unbound_form = ContactForm(initial=initial)
|
||||||
>>> bound_form = ContactForm(data, initial=initial)
|
>>> bound_form = ContactForm(data, initial=initial)
|
||||||
>>> print unbound_form['subject'].value
|
>>> print unbound_form['subject'].value()
|
||||||
welcome
|
welcome
|
||||||
>>> print bound_form['subject'].value
|
>>> print bound_form['subject'].value()
|
||||||
hi
|
hi
|
||||||
|
|
||||||
.. _binding-uploaded-files:
|
.. _binding-uploaded-files:
|
||||||
|
|
Loading…
Reference in New Issue