Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit bb9cc01b132dbde2461191dbb1035eaae4885051 1 parent dcf3be7
Karen Tracey authored August 29, 2009

Showing 1 changed file with 15 additions and 0 deletions. Show diff stats Hide diff stats

  1. 15  docs/ref/forms/widgets.txt
15  docs/ref/forms/widgets.txt
@@ -24,6 +24,13 @@ commonly used groups of widgets:
24 24
 
25 25
     Password input: ``<input type='password' ...>``
26 26
 
  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
+
27 34
 .. class:: HiddenInput
28 35
 
29 36
     Hidden input: ``<input type='hidden' ...>``
@@ -88,6 +95,14 @@ commonly used groups of widgets:
88 95
 
89 96
     Checkbox: ``<input type='checkbox' ...>``
90 97
 
  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
+
91 106
 .. class:: Select
92 107
 
93 108
     Select widget: ``<select><option ...>...</select>``

0 notes on commit bb9cc01

Please sign in to comment.
Something went wrong with that request. Please try again.