Refs #28643 -- Added math database functions.

Thanks Nick Pope for much review.
This commit is contained in:
Junyi Jiao 2018-07-05 11:02:12 -04:00 committed by Tim Graham
parent 48aeca44d8
commit a0b19a0f5b
30 changed files with 1644 additions and 8 deletions

View file

@ -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)