Changeset 5855
- Timestamp:
- 08/11/07 07:10:23 (1 year ago)
- Files:
-
- django/trunk/AUTHORS (modified) (1 diff)
- django/trunk/docs/newforms.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/AUTHORS
r5849 r5855 142 142 Tom Insam 143 143 Baurzhan Ismagulov <ibr@radix50.net> 144 james_027@yahoo.com 144 145 jcrasta@gmail.com 145 146 Zak Johnson <zakj@nox.cx> django/trunk/docs/newforms.txt
r5851 r5855 1130 1130 '%m/%d/%y', # '10/25/06' 1131 1131 1132 ``DecimalField`` 1133 ~~~~~~~~~~~~~~~~ 1134 1135 **New in Django development version** 1136 1137 * Default widget: ``TextInput`` 1138 * Empty value: ``None`` 1139 * Normalizes to: A Python ``decimal``. 1140 * Validates that the given value is a decimal. Leading and trailing 1141 whitespace is ignored. 1142 1143 Takes four optional arguments: ``max_value``, ``min_value``, ``max_digits``, 1144 and ``decimal_places``. The first two define the limits for the fields value. 1145 ``max_digits`` is the maximum number of digits (those before the decimal 1146 point plus those after the decimal point, with leading zeros stripped) 1147 permitted in the value, whilst ``decimal_places`` is the maximum number of 1148 decimal places permitted. 1149 1132 1150 ``EmailField`` 1133 1151 ~~~~~~~~~~~~~~ … … 1199 1217 * Validates that the given value is an integer. Leading and trailing 1200 1218 whitespace is allowed, as in Python's ``int()`` function. 1219 1220 Takes two optional arguments for validation, ``max_value`` and ``min_value``. 1221 These control the range of values permitted in the field. 1201 1222 1202 1223 ``MultipleChoiceField``
