Ticket #7200: newforms_floatfield_docs_r7520.patch

File newforms_floatfield_docs_r7520.patch, 860 bytes (added by George Vilches, 11 years ago)

Patch against r7520 to provide FloatField documentation for newforms.

  • docs/newforms.txt

     
    13821382                                as choices.
    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 ``int()`` 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~~~~~~~~~~~~~~
    13871401
Back to Top