Actually, this should be `target_location.course_id` which works because `target_location`'s category is `course`.