Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
  • Loading branch information...
commit 2099aba1bd72f9702962ded52026b4400dc4645e 1 parent 372736b
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' ...>``
@@ -50,6 +57,14 @@ commonly used groups of widgets:
50 57
 
51 58
     Checkbox: ``<input type='checkbox' ...>``
52 59
 
  60
+    Takes one optional argument:
  61
+
  62
+    .. attribute:: CheckboxInput.check_test
  63
+     
  64
+        A callable that takes the value of the CheckBoxInput 
  65
+        and returns ``True`` if the checkbox should be checked for
  66
+        that value. 
  67
+
53 68
 .. class:: Select
54 69
 
55 70
     Select widget: ``<select><option ...>...</select>``

0 notes on commit 2099aba

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