Wouldn't it need to be something like:

db.album.artist_id.represent = lambda r: db.artist(r.id).name

Reply via email to