summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2008-06-17 13:47:17 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2008-06-17 13:47:17 +0000
commitcd0f7b9a399a8d23759232d0d2250eb2d4cefadf (patch)
tree8991a899ebdd9e23630c78614ed8baf79a1b65f7 /docs
parentc6f277f9726ecd5e1dc8b3e19aececa44cad853f (diff)
Fixed #7200 -- Added newforms documentation for the FloatField. Thanks, George Vilches.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7677 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/newforms.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/newforms.txt b/docs/newforms.txt
index 25d80fda54..04e4c1aaa0 100644
--- a/docs/newforms.txt
+++ b/docs/newforms.txt
@@ -1382,6 +1382,20 @@ extra arguments:
as choices.
============== ========== ===============================================
+``FloatField``
+~~~~~~~~~~~~~~
+
+ * Default widget: ``TextInput``
+ * Empty value: ``None``
+ * Normalizes to: A Python float.
+ * Validates that the given value is an float. Leading and trailing
+ whitespace is allowed, as in Python's ``float()`` function.
+ * Error message keys: ``required``, ``invalid``, ``max_value``,
+ ``min_value``
+
+Takes two optional arguments for validation, ``max_value`` and ``min_value``.
+These control the range of values permitted in the field.
+
``ImageField``
~~~~~~~~~~~~~~