1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fix #16570: Restore ability to have decimal fields where max_digits equals decimal_places. Thanks dcwatson and kenth.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey
2011-11-12 19:53:56 +00:00
parent 63ba472cc4
commit efe4e2e517
5 changed files with 10 additions and 6 deletions

View File

@@ -69,6 +69,11 @@ class BooleanModel(models.Model):
class RenamedField(models.Model):
modelname = models.IntegerField(name="fieldname", choices=((1,'One'),))
# This model isn't used in any test, just here to ensure it validates successfully.
# See ticket #16570.
class DecimalLessThanOne(models.Model):
d = models.DecimalField(max_digits=3, decimal_places=3)
###############################################################################
# FileField