django-geosimple icon indicating copy to clipboard operation
django-geosimple copied to clipboard

Feature Request: Support for JOIN queries

Open Jakobovski opened this issue 7 years ago • 1 comments

I am trying to run this query

queryset = models.Company.objects
queryset = queryset.filter(addresses__location__approx_distance_lt=((latitude, longitude), radius))

but I am getting the following error

FieldError: Unsupported lookup 'approx_distance_lt' for GeohashField or join on the field not permitted.

Additionally it's important that annotation of the distance still works on the returned results

Jakobovski avatar Apr 16 '17 13:04 Jakobovski