Commit 1ba2d688 authored by Malcolm Tredinnick's avatar Malcolm Tredinnick
Browse files

Since max_digits and decimal_places are required on...

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
parent ab07a9b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@

# DecimalField

>>> f = DecimalField()
>>> f = DecimalField(max_digits=4, decimal_places=2)

>>> f.to_python(3)
Decimal("3")