Order.objects.all().extra(where=[
    'ST_Distance(origin, ST_PointFromText(%s, 4326)) <= CAST(range AS double precision) / 1000'
    ], params=[user.profile.geo_location.wkt])
GeoDjango distance filter with distance value stored within model - query