Fixed #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
This commit is contained in:
Karen Tracey 2009-08-29 12:40:47 +00:00
parent dcf3be7a62
commit bb9cc01b13
1 changed files with 15 additions and 0 deletions

View File

@ -24,6 +24,13 @@ commonly used groups of widgets:
Password input: ``<input type='password' ...>`` Password input: ``<input type='password' ...>``
Takes one optional argument:
.. attribute:: PasswordInput.render_value
Determines whether the widget will have a value filled in when the
form is re-displayed after a validation error (default is ``True``).
.. class:: HiddenInput .. class:: HiddenInput
Hidden input: ``<input type='hidden' ...>`` Hidden input: ``<input type='hidden' ...>``
@ -88,6 +95,14 @@ commonly used groups of widgets:
Checkbox: ``<input type='checkbox' ...>`` Checkbox: ``<input type='checkbox' ...>``
Takes one optional argument:
.. attribute:: CheckboxInput.check_test
A callable that takes the value of the CheckBoxInput
and returns ``True`` if the checkbox should be checked for
that value.
.. class:: Select .. class:: Select
Select widget: ``<select><option ...>...</select>`` Select widget: ``<select><option ...>...</select>``