mirror of
https://github.com/django/django.git
synced 2025-09-11 21:16:50 +00:00
Fixed #31487 -- Added precision argument to Round().
This commit is contained in:
parent
61d5e57353
commit
2f13c476ab
7 changed files with 115 additions and 10 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue