Ticket #4987: my_patch.diff

File my_patch.diff, 1019 bytes (added by James <james_027@…>, 12 years ago)
  • docs/newforms.txt

     
    10861086    '%m/%d/%y %H:%M',        # '10/25/06 14:30'
    10871087    '%m/%d/%y',              # '10/25/06'
    10881088
     1089``DecimalField``
     1090~~~~~~~~~~~~~~~~
     1091
     1092    * Default widget: ``TextInput``
     1093    * Empty value: ``None``
     1094    * Normalizes to: A Python decimal.
     1095    * Validates that the given value is an decimal. Leading and trailing
     1096      whitespace is allowed, as it will be strip.
     1097     
     1098Has 4 optional arguments for validation, ``max_value``, ``min_value``,
     1099``max_digits``, and ``decimal_places``.     
     1100
    10891101``EmailField``
    10901102~~~~~~~~~~~~~~
    10911103
     
    11081120    * Validates that the given value is an integer. Leading and trailing
    11091121      whitespace is allowed, as in Python's ``int()`` function.
    11101122
     1123Has 2 optional arguments for validation, ``max_value`` and ``min_value``.
     1124
     1125
    11111126``MultipleChoiceField``
    11121127~~~~~~~~~~~~~~~~~~~~~~~
    11131128
Back to Top