Use model's primary key, instead of presuming it's always id.