Skip to content

Commit bb9cc01

Browse files
committed
Fixed django#6674: Documented a couple of widget arguments. Thanks timo.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent dcf3be7 commit bb9cc01

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/ref/forms/widgets.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ commonly used groups of widgets:
2424

2525
Password input: ``<input type='password' ...>``
2626

27+
Takes one optional argument:
28+
29+
.. attribute:: PasswordInput.render_value
30+
31+
Determines whether the widget will have a value filled in when the
32+
form is re-displayed after a validation error (default is ``True``).
33+
2734
.. class:: HiddenInput
2835

2936
Hidden input: ``<input type='hidden' ...>``
@@ -88,6 +95,14 @@ commonly used groups of widgets:
8895

8996
Checkbox: ``<input type='checkbox' ...>``
9097

98+
Takes one optional argument:
99+
100+
.. attribute:: CheckboxInput.check_test
101+
102+
A callable that takes the value of the CheckBoxInput
103+
and returns ``True`` if the checkbox should be checked for
104+
that value.
105+
91106
.. class:: Select
92107

93108
Select widget: ``<select><option ...>...</select>``

0 commit comments

Comments
 (0)