diff options
| author | Honza Král <honza.kral@gmail.com> | 2009-09-11 21:06:15 +0000 |
|---|---|---|
| committer | Honza Král <honza.kral@gmail.com> | 2009-09-11 21:06:15 +0000 |
| commit | 78d75b86e3e45ec3ca9f2ace21255922046dd509 (patch) | |
| tree | 14dddad459054ea4daba08a178f8a3d953344184 /docs/ref/forms | |
| parent | f20e7fcdd22fe3a2181071af1f8460bb6c3d32f0 (diff) | |
[soc2009/model-validation] Merged to trunk at r11478
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/forms')
| -rw-r--r-- | docs/ref/forms/widgets.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index 9735c8181f..e2ba0d7889 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -24,6 +24,13 @@ commonly used groups of widgets: 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 Hidden input: ``<input type='hidden' ...>`` @@ -88,6 +95,14 @@ commonly used groups of widgets: 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 Select widget: ``<select><option ...>...</select>`` |
