Removed cohort_config from advanced settings page.

TNL-1258
This commit is contained in:
Usman Khalid
2015-03-02 16:32:28 +05:00
parent eee6250fb2
commit e07f45b5dd
3 changed files with 2 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ class CourseMetadata(object):
# Should not be used directly. Instead the filtered_list method should
# be used if the field needs to be filtered depending on the feature flag.
FILTERED_LIST = [
'cohort_config',
'xml_attributes',
'start',
'end',

View File

@@ -154,7 +154,6 @@ class AdvancedSettingsPage(CoursePage):
'cert_name_long',
'cert_name_short',
'certificates_display_behavior',
'cohort_config',
'course_image',
'cosmetic_display_price',
'advertised_start',

View File

@@ -405,7 +405,7 @@ def add_courseware_context(content_list, course, user, id_map=None):
content.update({"courseware_url": url, "courseware_title": title})
def prepare_content(content, course_key, is_staff=False, **kwargs):
def prepare_content(content, course_key, is_staff=False, course_is_cohorted=None):
"""
This function is used to pre-process thread and comment models in various
ways before adding them to the HTTP response. This includes fixing empty
@@ -459,7 +459,6 @@ def prepare_content(content, course_key, is_staff=False, **kwargs):
else:
del endorsement["user_id"]
course_is_cohorted = kwargs.get('course_is_cohorted')
if course_is_cohorted is None:
course_is_cohorted = is_course_cohorted(course_key)