When applicable, append the id of a model instance to its name, as name#id.