diff --git a/cms/djangoapps/contentstore/courseware_index.py b/cms/djangoapps/contentstore/courseware_index.py index d3b6f811d5f6..0d87de53633f 100644 --- a/cms/djangoapps/contentstore/courseware_index.py +++ b/cms/djangoapps/contentstore/courseware_index.py @@ -590,6 +590,7 @@ class CourseAboutSearchIndexer(CoursewareSearchIndexer): AboutInfo("language", AboutInfo.PROPERTY, AboutInfo.FROM_COURSE_PROPERTY), AboutInfo("invitation_only", AboutInfo.PROPERTY, AboutInfo.FROM_COURSE_PROPERTY), AboutInfo("catalog_visibility", AboutInfo.PROPERTY, AboutInfo.FROM_COURSE_PROPERTY), + AboutInfo("course_type", AboutInfo.ANALYSE | AboutInfo.PROPERTY, AboutInfo.FROM_COURSE_PROPERTY), ] @classmethod diff --git a/xmodule/course_block.py b/xmodule/course_block.py index c3f42ecb6668..15bfb210bcdb 100644 --- a/xmodule/course_block.py +++ b/xmodule/course_block.py @@ -1062,6 +1062,15 @@ class CourseFields: # lint-amnesty, pylint: disable=missing-class-docstring scope=Scope.settings ) + course_type = String( + display_name=_("Course Type"), + help=_( + "Content type that helps the student to filter courses which are more interesting for them." + ), + default=None, + scope=Scope.settings, + ) + class CourseBlock( CourseFields,