I see two ways how to fix it:
1. made Distance function to return raw values on MySQL
2. raise NotImplemented if Distance function is applied to geodetic field
--
Ticket URL: <https://code.djangoproject.com/ticket/27573>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Sergey Fedoseev
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/27573#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/27573#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/8287 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27573#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"898e623db0fa6b2cf0b187a3db78b675cde111cf" 898e623]:
{{{
#!CommitTicketReference repository=""
revision="898e623db0fa6b2cf0b187a3db78b675cde111cf"
Fixed #27573 -- Made Distance on geodetic coordinates return a raw value
on MySQL.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27573#comment:4>