Fixed #31487 -- Added precision argument to Round().

This commit is contained in:
Nick Pope 2021-03-24 22:29:33 +00:00 committed by Mariusz Felisiak
parent 61d5e57353
commit 2f13c476ab
7 changed files with 115 additions and 10 deletions

View file

@ -42,7 +42,7 @@ class DTModel(models.Model):
class DecimalModel(models.Model):
n1 = models.DecimalField(decimal_places=2, max_digits=6)
n2 = models.DecimalField(decimal_places=2, max_digits=6)
n2 = models.DecimalField(decimal_places=7, max_digits=9, null=True, blank=True)
class IntegerModel(models.Model):