class FlatSerializer(serializers.ModelSerializer):
    station_name = serializers.CharField(source='station.name', read_only=True)


class Meta:
    model = Flat
fields = 'station_name',
Foreign key value in Django REST Framework