2010/10/23 Miguel Araujo <muchochini@gmail.com>
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 Araujo2010/10/23 Karen Tracey <kmtracey@gmail.com>On Sat, Oct 23, 2010 at 1:07 PM, Miguel Araujo <muchochini@gmail.com> wrote:Looks like you are missing an underscore in distance__lteItem.objects.filter(location__point__distance_lte = (point, D(km=10)))
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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment