| 421 | Bug #12239 |
| 422 | Float was being rounded to integer on gte queries on integer field. Tests |
| 423 | show that both gte and lte work as desired. Note that the fix changes |
| 424 | get_prep_lookup for gte queries only. |
| 425 | >>> Number.objects.filter(num__gte=11.9) |
| 426 | [<Number: 12>] |
| 427 | >>> Number.objects.filter(num__gte=12) |
| 428 | [<Number: 12>] |
| 429 | >>> Number.objects.filter(num__gte=12.0) |
| 430 | [<Number: 12>] |
| 431 | >>> Number.objects.filter(num__gte=12.1) |
| 432 | [] |
| 433 | >>> Number.objects.filter(num__gte=12.9) |
| 434 | [] |
| 435 | >>> Number.objects.filter(num__lte=11.9) |
| 436 | [<Number: 4>, <Number: 8>] |
| 437 | >>> Number.objects.filter(num__lte=12) |
| 438 | [<Number: 4>, <Number: 8>, <Number: 12>] |
| 439 | >>> Number.objects.filter(num__lte=12.0) |
| 440 | [<Number: 4>, <Number: 8>, <Number: 12>] |
| 441 | >>> Number.objects.filter(num__lte=12.1) |
| 442 | [<Number: 4>, <Number: 8>, <Number: 12>] |
| 443 | >>> Number.objects.filter(num__lte=12.9) |
| 444 | [<Number: 4>, <Number: 8>, <Number: 12>] |
| 445 | |