Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
95460dd1
Commit
95460dd1
authored
Jun 22, 2017
by
Alex Dusenbery
Committed by
Alex Dusenbery
Jun 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EDUCATOR-514 | Hide the certificate_available_date field until we enable the feature.
parent
3460adc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
cms/djangoapps/models/settings/course_metadata.py
+9
-0
No files found.
cms/djangoapps/models/settings/course_metadata.py
View file @
95460dd1
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment