Thanks Karen, you are right. But I missed the underscore for sending this, although I was trying here with double underscore:
So If I do it right: Item.objects.filter(location__point__distance__lte = (point, D(km=10))) I get: FieldError: Join on field 'point' not permitted. Did you misspell 'distance' for the lookup type? So it's still not working. Regards, Miguel Araujo 2010/10/23 Karen Tracey <[email protected]> > On Sat, Oct 23, 2010 at 1:07 PM, Miguel Araujo <[email protected]>wrote: > >> Item.objects.filter(location__point__distance_lte = (point, D(km=10))) >> > > Looks like you are missing an underscore in distance__lte > > Karen > -- > http://tracey.org/kmt/ > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<django-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en.

