Changeset 9388
- Timestamp:
- 11/10/08 14:01:51 (2 months ago)
- Files:
-
- django/trunk/tests/regressiontests/forms/fields.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/regressiontests/forms/fields.py
r9387 r9388 431 431 >>> f.clean('.002') == Decimal("0.002") 432 432 True 433 434 >>> f = DecimalField(max_digits=2, decimal_places=2) 435 >>> f.clean('.01') == Decimal(".01") 436 True 437 >>> f.clean('1.1') 438 Traceback (most recent call last): 439 ... 440 ValidationError: [u'Ensure that there are no more than 0 digits before the decimal point.'] 441 433 442 434 443 # DateField ###################################################################
