Commit 8b0693f2 by Nimisha Asthagiri

Add highlights_enabled_for_messaging course field

parent 8b8677a0
......@@ -28,6 +28,7 @@ class CourseMetadata(object):
'end',
'enrollment_start',
'enrollment_end',
'certificate_available_date',
'tabs',
'graceperiod',
'show_timezone',
......@@ -59,6 +60,7 @@ class CourseMetadata(object):
'show_correctness',
'chrome',
'default_tab',
'highlights_enabled_for_messaging',
]
@classmethod
......@@ -108,13 +110,6 @@ class CourseMetadata(object):
if not XBlockStudioConfigurationFlag.is_enabled():
filtered_list.append('allow_unsupported_xblocks')
# TODO: https://openedx.atlassian.net/browse/EDUCATOR-736
# Before we roll out the auto-certs feature, move this to a good, shared
# place such that we're not repeating code found in LMS.
switches = WaffleSwitchNamespace(name=u'certificates', log_prefix=u'Certificates: ')
if not switches.is_enabled(u'instructor_paced_only'):
filtered_list.append('certificate_available_date')
return filtered_list
@classmethod
......
......@@ -869,6 +869,14 @@ class CourseFields(object):
),
scope=Scope.settings, default=False
)
highlights_enabled_for_messaging = Boolean(
display_name=_("Highlights Enabled for Messaging"),
help=_(
"Enter true or false. If true, any highlights associated with content in the course will be messaged "
"to learners at their scheduled time."
),
scope=Scope.settings, default=False
)
class CourseModule(CourseFields, SequenceModule): # pylint: disable=abstract-method
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment