1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

[1.11.x] Refs #18247 -- Fixed SQLite QuerySet filtering on decimal result of Least and Greatest.

Backport of 068d75688f from master
This commit is contained in:
Sergey Fedoseev
2017-03-29 22:29:53 +05:00
committed by Tim Graham
parent d476fa96ac
commit 8484cf4cd0
4 changed files with 29 additions and 5 deletions

View File

@@ -56,3 +56,8 @@ class DTModel(models.Model):
def __str__(self):
return 'DTModel({0})'.format(self.name)
class DecimalModel(models.Model):
n1 = models.DecimalField(decimal_places=2, max_digits=6)
n2 = models.DecimalField(decimal_places=2, max_digits=6)