From 1ba2d6888f78ddd280d5882cd31e7253ef143cbc Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 30 Jul 2008 00:18:31 +0000 Subject: [PATCH] Since max_digits and decimal_places are required on django.db.models.DecimalField, one of the tests was a bit bogus. Fixed that. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8142 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/model_fields/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regressiontests/model_fields/tests.py b/tests/regressiontests/model_fields/tests.py index 5be852f407..ff0df80067 100644 --- a/tests/regressiontests/model_fields/tests.py +++ b/tests/regressiontests/model_fields/tests.py @@ -3,7 +3,7 @@ # DecimalField ->>> f = DecimalField() +>>> f = DecimalField(max_digits=4, decimal_places=2) >>> f.to_python(3) Decimal("3")