For courses imported by studio have target_location (course_id) same after import. But if you import through management command then import view creates a new course with target_location same as the importing course.