mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #28643 -- Added math database functions.
Thanks Nick Pope for much review.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user