mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #28643 -- Added math database functions.
Thanks Nick Pope for much review.
This commit is contained in:
parent
48aeca44d8
commit
a0b19a0f5b
30 changed files with 1644 additions and 8 deletions
|
@ -54,3 +54,14 @@ 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)
|
||||
|
||||
|
||||
class IntegerModel(models.Model):
|
||||
big = models.BigIntegerField(null=True, blank=True)
|
||||
normal = models.IntegerField(null=True, blank=True)
|
||||
small = models.SmallIntegerField(null=True, blank=True)
|
||||
|
||||
|
||||
class FloatModel(models.Model):
|
||||
f1 = models.FloatField(null=True, blank=True)
|
||||
f2 = models.FloatField(null=True, blank=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue