EDUCATOR-514 | Hide the certificate_available_date field until we enable the feature.
This commit is contained in:
committed by
Alex Dusenbery
parent
3460adc824
commit
95460dd143
@@ -5,6 +5,8 @@ from django.conf import settings
|
||||
from django.utils.translation import ugettext as _
|
||||
from xblock.fields import Scope
|
||||
|
||||
from openedx.core.djangoapps.waffle_utils import WaffleSwitchNamespace
|
||||
|
||||
from xblock_django.models import XBlockStudioConfigurationFlag
|
||||
from xmodule.modulestore.django import modulestore
|
||||
|
||||
@@ -101,6 +103,13 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user