Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #7200 -- Added newforms documentation for the FloatField. Thank…

…s, George Vilches.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7677 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cd0f7b9a399a8d23759232d0d2250eb2d4cefadf 1 parent c6f277f
Russell Keith-Magee freakboy3742 authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 docs/newforms.txt
14 docs/newforms.txt
View
@@ -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``
~~~~~~~~~~~~~~
Please sign in to comment.
Something went wrong with that request. Please try again.