def _get_migration_options(self, options):
        """
        Returns the command arguments configured via django admin.
        """
        force_update = options['force_update']
        commit = options['commit']
        courses_mode = get_mutually_exclusive_required_option(options, 'course_ids', 'all_courses', 'from_settings')
        if courses_mode == 'all_courses':
            course_keys = [course.id for course in modulestore().get_course_summaries()]
        elif courses_mode == 'course_ids':
            course_keys = map(self._parse_course_key, options['course_ids'])
        else:
            if self._latest_settings().all_courses:
                course_keys = [course.id for course in modulestore().get_course_summaries()]
            else:
                course_keys = parse_course_keys(self._latest_settings().course_ids.split())
            force_update = self._latest_settings().force_update
            commit = self._latest_settings().commit

        return course_keys, force_update, commit