summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2009-08-29 12:44:44 +0000
committerKaren Tracey <kmtracey@gmail.com>2009-08-29 12:44:44 +0000
commit2099aba1bd72f9702962ded52026b4400dc4645e (patch)
tree711f43988f5ccf0bec158942ec04e5e2dc1671ab
parent372736b70fbbad70bd66755c65f2919cdad2e8fd (diff)
[1.0.X] Fixed #6674: Documented a couple of widget arguments. Thanks timo.
r11478 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@11479 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--docs/ref/forms/widgets.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
index 9d7fbae493..f80576d91a 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' ...>``
@@ -50,6 +57,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>``