Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored June 17, 2008

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

  1. 14  docs/newforms.txt
14  docs/newforms.txt
@@ -1382,6 +1382,20 @@ extra arguments:
1382 1382
                                 as choices.
1383 1383
     ==============  ==========  ===============================================
1384 1384
 
  1385
+``FloatField`` 
  1386
+~~~~~~~~~~~~~~ 
  1387
+
  1388
+    * Default widget: ``TextInput`` 
  1389
+    * Empty value: ``None`` 
  1390
+    * Normalizes to: A Python float. 
  1391
+    * Validates that the given value is an float. Leading and trailing 
  1392
+      whitespace is allowed, as in Python's ``float()`` function. 
  1393
+    * Error message keys: ``required``, ``invalid``, ``max_value``, 
  1394
+      ``min_value`` 
  1395
+	 
  1396
+Takes two optional arguments for validation, ``max_value`` and ``min_value``. 
  1397
+These control the range of values permitted in the field.
  1398
+
1385 1399
 ``ImageField``
1386 1400
 ~~~~~~~~~~~~~~
1387 1401
 

0 notes on commit cd0f7b9

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