Commit a68cdd35 by cahrens

Add advanced_modules course setting back in.

parent e3f7e602
...@@ -297,8 +297,7 @@ def edit_unit(request, location): ...@@ -297,8 +297,7 @@ def edit_unit(request, location):
# Check if there are any advanced modules specified in the course policy. These modules # Check if there are any advanced modules specified in the course policy. These modules
# should be specified as a list of strings, where the strings are the names of the modules # should be specified as a list of strings, where the strings are the names of the modules
# in ADVANCED_COMPONENT_TYPES that should be enabled for the course. # in ADVANCED_COMPONENT_TYPES that should be enabled for the course.
course_metadata = CourseMetadata.fetch(course.location) course_advanced_keys = course.advanced_modules
course_advanced_keys = course_metadata.get(ADVANCED_COMPONENT_POLICY_KEY, [])
# Set component types according to course policy file # Set component types according to course policy file
component_types = list(COMPONENT_TYPES) component_types = list(COMPONENT_TYPES)
......
...@@ -178,6 +178,7 @@ class CourseDescriptor(SequenceDescriptor): ...@@ -178,6 +178,7 @@ class CourseDescriptor(SequenceDescriptor):
remote_gradebook = Object(scope=Scope.settings, default={}) remote_gradebook = Object(scope=Scope.settings, default={})
allow_anonymous = Boolean(scope=Scope.settings, default=True) allow_anonymous = Boolean(scope=Scope.settings, default=True)
allow_anonymous_to_peers = Boolean(scope=Scope.settings, default=False) allow_anonymous_to_peers = Boolean(scope=Scope.settings, default=False)
advanced_modules = List(help="Beta modules used in your course", default=[], scope=Scope.settings)
has_children = True has_children = True
info_sidebar_name = String(scope=Scope.settings, default='Course Handouts') info_sidebar_name = String(scope=Scope.settings, default='Course Handouts')
......
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