Add highlights_enabled_for_messaging course field

This commit is contained in:
Nimisha Asthagiri
2017-11-17 14:42:46 -05:00
parent 8b8677a093
commit 8b0693f229
2 changed files with 10 additions and 7 deletions

View File

@@ -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