Ticket #4987: my_patch.diff
File my_patch.diff, 1019 bytes (added by , 17 years ago) |
---|
-
docs/newforms.txt
1086 1086 '%m/%d/%y %H:%M', # '10/25/06 14:30' 1087 1087 '%m/%d/%y', # '10/25/06' 1088 1088 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 1098 Has 4 optional arguments for validation, ``max_value``, ``min_value``, 1099 ``max_digits``, and ``decimal_places``. 1100 1089 1101 ``EmailField`` 1090 1102 ~~~~~~~~~~~~~~ 1091 1103 … … 1108 1120 * Validates that the given value is an integer. Leading and trailing 1109 1121 whitespace is allowed, as in Python's ``int()`` function. 1110 1122 1123 Has 2 optional arguments for validation, ``max_value`` and ``min_value``. 1124 1125 1111 1126 ``MultipleChoiceField`` 1112 1127 ~~~~~~~~~~~~~~~~~~~~~~~ 1113 1128