From 388bb5bd9aa3cd43825cd8a3632a57d8204f875f Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 23 Apr 2016 19:13:31 +0200 Subject: Fixed #22936 -- Obsoleted Field.get_prep_lookup()/get_db_prep_lookup() Thanks Tim Graham for completing the initial patch. --- tests/queries/tests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/queries') diff --git a/tests/queries/tests.py b/tests/queries/tests.py index 098f47b8d1..6af66ba7f9 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -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), [''] -- cgit v1.3