mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
This reverts7990d254b0. Thanks Marc Odermatt for the report. Backport of0c1518ee42from main
This commit is contained in:
committed by
Mariusz Felisiak
parent
a44e974412
commit
91f8df5c2e
@@ -91,7 +91,10 @@ class DecimalFieldTests(TestCase):
|
||||
Really big values can be used in a filter statement.
|
||||
"""
|
||||
# This should not crash.
|
||||
Foo.objects.filter(d__gte=100000000000)
|
||||
self.assertSequenceEqual(Foo.objects.filter(d__gte=100000000000), [])
|
||||
|
||||
def test_lookup_decimal_larger_than_max_digits(self):
|
||||
self.assertSequenceEqual(Foo.objects.filter(d__lte=Decimal("123456")), [])
|
||||
|
||||
def test_max_digits_validation(self):
|
||||
field = models.DecimalField(max_digits=2)
|
||||
|
||||
Reference in New Issue
Block a user