use model.getId() instead of model.id

The code as-is makes a pretty harsh assumption that the model's ID is stored as `model.id`.

This more closely follows the Ampersand convention of always using `.getId()` to grab the model ID.