mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #22936 -- Obsoleted Field.get_prep_lookup()/get_db_prep_lookup()
Thanks Tim Graham for completing the initial patch.
This commit is contained in:
parent
1206eea11e
commit
388bb5bd9a
19 changed files with 89 additions and 220 deletions
|
@ -1229,9 +1229,8 @@ class Queries2Tests(TestCase):
|
|||
)
|
||||
|
||||
def test_ticket12239(self):
|
||||
# Float was being rounded to integer on gte queries on integer field. Tests
|
||||
# show that gt, lt, gte, and lte work as desired. Note that the fix changes
|
||||
# get_prep_lookup for gte and lt queries only.
|
||||
# Custom lookups are registered to round float values correctly on gte
|
||||
# and lt IntegerField queries.
|
||||
self.assertQuerysetEqual(
|
||||
Number.objects.filter(num__gt=11.9),
|
||||
['<Number: 12>']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue