#29422: QuerySet.extra use case - "earth_box", "ll_to_earth"
-------------------------------------+-------------------------------------
Reporter: Mateusz Kurowski | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Database layer | Version: 2.0
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: QuerySet.extra, | Triage Stage:
queryset, extra, earth_box, | Unreviewed
ll_to_earth, models, function, |
expression, manager |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Shai Berger):
* status: new => closed
* resolution: => invalid
Comment:
Without going into too many details, I'd expect you to be able to define
two [https://docs.djangoproject.com/en/2.0/ref/models/expressions
/#writing-your-own-query-expressions user functions] (something like
`LLToBox()` taking two arguments and `LLToEarthBox()` taking three) and
use the builtin `contains` comparison, or, if this doesn't work, define
your own [https://docs.djangoproject.com/en/2.0/ref/models/lookups/
comparison].
In general, please direct such questions to the available help channels. I
am closing this ticket as invalid, for more details see
TicketClosingReasons/UseSupportChannels.
--
Ticket URL: <https://code.djangoproject.com/ticket/29422#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/064.696e2ac3cb3e0feff6c8a8cadba1e38d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.