Use get_id() to access id of models rather than the _id attribute