call model_class.as_id if it implements it