1👍
✅
you need to do select_related('nearest_airport__airport_id')
instead of select_related('nearest_airport')
since AirportDistance
accesses airport_id.name
when resolving airport_name
.
Source:stackexchange.com