1👍
Yes, like this:
user.objects.filter(userLocation__position__distance_lte=(userLocation.position, D(km=15)).distance(userLocation.position).order_by('distance')
Source:stackexchange.com
1👍
Yes, like this:
user.objects.filter(userLocation__position__distance_lte=(userLocation.position, D(km=15)).distance(userLocation.position).order_by('distance')