support and cast relationship references as ReadonlyField