Commit 95460dd1 by Alex Dusenbery Committed by Alex Dusenbery

EDUCATOR-514 | Hide the certificate_available_date field until we enable the feature.

parent 3460adc8
......@@ -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
......
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