Commit 8b0693f2 by Nimisha Asthagiri

Add highlights_enabled_for_messaging course field

parent 8b8677a0
...@@ -28,6 +28,7 @@ class CourseMetadata(object): ...@@ -28,6 +28,7 @@ class CourseMetadata(object):
'end', 'end',
'enrollment_start', 'enrollment_start',
'enrollment_end', 'enrollment_end',
'certificate_available_date',
'tabs', 'tabs',
'graceperiod', 'graceperiod',
'show_timezone', 'show_timezone',
...@@ -59,6 +60,7 @@ class CourseMetadata(object): ...@@ -59,6 +60,7 @@ class CourseMetadata(object):
'show_correctness', 'show_correctness',
'chrome', 'chrome',
'default_tab', 'default_tab',
'highlights_enabled_for_messaging',
] ]
@classmethod @classmethod
...@@ -108,13 +110,6 @@ class CourseMetadata(object): ...@@ -108,13 +110,6 @@ class CourseMetadata(object):
if not XBlockStudioConfigurationFlag.is_enabled(): if not XBlockStudioConfigurationFlag.is_enabled():
filtered_list.append('allow_unsupported_xblocks') 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 return filtered_list
@classmethod @classmethod
......
...@@ -869,6 +869,14 @@ class CourseFields(object): ...@@ -869,6 +869,14 @@ class CourseFields(object):
), ),
scope=Scope.settings, default=False 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 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