--
Ticket URL: <https://code.djangoproject.com/ticket/27574>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* owner: nobody => Sergey Fedoseev
--
Ticket URL: <https://code.djangoproject.com/ticket/27574#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/27574#comment:2>
Comment (by Tobias Krönke):
I would like to note, that `ST_Area` also works, although Django denies
its execution:
{{{
Region.objects.order_by(RawSQL('ST_Area(polygon)', params=[]))
<QuerySet [<Region: Region object (1)>, '...(remaining elements
truncated)...']>
}}}
in contrast that errors with contributed `Area`:
{{{
from django.contrib.gis.db.models.functions import Area
Region.objects.order_by(Area('polygon'))
...
django.db.utils.NotSupportedError: Area on geodetic coordinate systems not
supported.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27574#comment:3>
* owner: Sergey Fedoseev => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/27574#comment:4>
* owner: (none) => tokibito
* status: new => assigned
Comment:
I created the patch [https://github.com/django/django/pull/14080 PR].
Updated the Distance function and be able to use distance lookup on MySQL.
--
Ticket URL: <https://code.djangoproject.com/ticket/27574#comment:5>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
Comment:
Please uncheck "patch needs improvement" after addressing the test
failures and other review comments. If the tests are passing locally,
perhaps it's a difference between the versions that [wiki:Jenkins] uses.
--
Ticket URL: <https://code.djangoproject.com/ticket/27574#comment:6>
* owner: tokibito => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/27574#comment:7>