Model A has a ForeignKey relation to Model B. Model B has a PointField. Is there a way to order Model A objects by distance from a POINT?
Assuming that both Model
B are using
objects = models.GeoManager(), the FK field on Model A is named
pnt is a GEOSGeometry then the following should work: