Django

Code

Changeset 7677

Show
Ignore:
Timestamp:
06/17/08 08:47:17 (4 months ago)
Author:
russellm
Message:

Fixed #7200 -- Added newforms documentation for the FloatField?. Thanks, George Vilches.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/newforms.txt

    r7409 r7677  
    13831383    ==============  ==========  =============================================== 
    13841384 
     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          
     1396Takes two optional arguments for validation, ``max_value`` and ``min_value``.  
     1397These control the range of values permitted in the field. 
     1398 
    13851399``ImageField`` 
    13861400~~~~~~~~~~~~~~