from django.db.models import ExpressionWrapper, F
queryset.annotate(
distance=ExpressionWrapper(
expression=((1 - F("address__longitude")) * 2) + ((1 - F("address__latitude")) * 2),
output_field=models.FloatField,
),
) \
.order_by("distance")