From ad7c3f932b5066a60daf7e63e1d31e23152a3f55 Mon Sep 17 00:00:00 2001 From: Nick Parlante Date: Fri, 4 Oct 2013 10:37:47 -0700 Subject: [PATCH] Bug fix - text_customization should not show in settings Also change test to not expect text_customization --- cms/djangoapps/contentstore/features/problem-editor.py | 2 -- common/lib/xmodule/xmodule/capa_module.py | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cms/djangoapps/contentstore/features/problem-editor.py b/cms/djangoapps/contentstore/features/problem-editor.py index 89f7b21882..3644d3ec09 100644 --- a/cms/djangoapps/contentstore/features/problem-editor.py +++ b/cms/djangoapps/contentstore/features/problem-editor.py @@ -10,7 +10,6 @@ MAXIMUM_ATTEMPTS = "Maximum Attempts" PROBLEM_WEIGHT = "Problem Weight" RANDOMIZATION = 'Randomization' SHOW_ANSWER = "Show Answer" -TEXT_CUSTOMIZATION = "text_customization" @step('I have created a Blank Common Problem$') @@ -38,7 +37,6 @@ def i_see_advanced_settings_with_values(step): [PROBLEM_WEIGHT, "", False], [RANDOMIZATION, "Never", False], [SHOW_ANSWER, "Finished", False], - [TEXT_CUSTOMIZATION, "[object Object]", False] ]) diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py index 03a4ad6365..6ffbf7bd06 100644 --- a/common/lib/xmodule/xmodule/capa_module.py +++ b/common/lib/xmodule/xmodule/capa_module.py @@ -1190,5 +1190,6 @@ class CapaDescriptor(CapaFields, RawDescriptor): def non_editable_metadata_fields(self): non_editable_fields = super(CapaDescriptor, self).non_editable_metadata_fields non_editable_fields.extend([CapaDescriptor.due, CapaDescriptor.graceperiod, - CapaDescriptor.force_save_button, CapaDescriptor.markdown]) + CapaDescriptor.force_save_button, CapaDescriptor.markdown, + CapaDescriptor.text_customization]) return non_editable_fields