﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27573	Distance function returns Distance object instead of raw value on MySQL	Sergey Fedoseev	Sergey Fedoseev	"https://docs.djangoproject.com/en/1.9/ref/contrib/gis/functions/#django.contrib.gis.db.models.functions.Distance
> On MySQL, a raw float value is returned, as it’s not possible to automatically determine the unit of the field.
but
{{{
In [3]: City.objects.annotate(d=Distance('point', Point(0, 0, srid=4326))).first().d
Out[3]: Distance(m=1.41421356237)
}}}

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"	Bug	closed	GIS	1.9	Normal	fixed			Accepted	1	0	0	0	0	0
