#12390: distance query doesn't support * operand type
--------------------------------+-------------------------------------------
Reporter: dingle | Owner: nobody
Status: new | Milestone:
Component: GIS | Version: SVN
Keywords: geodjango distance | Stage: Unreviewed
Has_patch: 0 |
--------------------------------+-------------------------------------------
Example:
{{{
>>>d1 = D(mi=10)
>>>d2 = D(mi=20)
>>>qs = SouthTexasCity.objects.filter(point__distance_gte=(pnt, 0.5*d1 +
0.5*d2))
}}}
It raised:
{{{
TypeError: unsupported operand type(s) for *: 'float' and 'Distance'
}}}
But obviously it works fine with addition and subtraction. I think it will
be nice that
multiplication be implemented as well.
--
Ticket URL: <http://code.djangoproject.com/ticket/12390>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.