It looks from the code that `course_id` can also be a `CourseLocator`. The docs should reflect this.