allowing a registered model to use a non-primary key as the object_id