mirror of
https://github.com/django/django.git
synced 2025-11-02 21:03:53 +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:
parent
63ba472cc4
commit
efe4e2e517
5 changed files with 10 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue