diff options
Diffstat (limited to 'tests/regressiontests/model_fields')
| -rw-r--r-- | tests/regressiontests/model_fields/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/model_fields/tests.py b/tests/regressiontests/model_fields/tests.py index 80ff4bada6..b1a572844f 100644 --- a/tests/regressiontests/model_fields/tests.py +++ b/tests/regressiontests/model_fields/tests.py @@ -20,6 +20,10 @@ Traceback (most recent call last): ... ValidationError: This value must be a decimal number. +>>> f = DecimalField(default=Decimal("0.00")) +>>> f.get_default() +Decimal("0.00") + >>> f = DecimalField(max_digits=5, decimal_places=1) >>> x = f.to_python(2) >>> y = f.to_python('2.6') |
