#28851: Support Open Ranges for Range Lookup - convert None to 'infinity'
-------------------------------------+-------------------------------------
Reporter: Sven R. Kunze | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: 1.11
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
Any reason why you can't use `date__gte` and `date__lte`?
In order to accept this we'd have to make sure all the supported database
engines are able to use open ranges (is `infity` supported for all
datatypes?) and whether or not these engines will be smart enough to use
an index if this value is used. For these reasons I'm -0 on adding this as
it doesn't seem to bring benefits over the existing `lt`, `gt` and friends
lookups.
--
Ticket URL: <https://code.djangoproject.com/ticket/28851#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.4b01d305d724528f72b8f72e12cd0dc3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.