From 9239da678a4a34c72bed32e777568540c90d98e4 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Wed, 10 Oct 2012 15:47:19 -0400 Subject: [PATCH] Mark is_draft as system metadata, so that users don't edit it --- common/lib/xmodule/xmodule/x_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/x_module.py b/common/lib/xmodule/xmodule/x_module.py index e5405c7f4a..3309f6270c 100644 --- a/common/lib/xmodule/xmodule/x_module.py +++ b/common/lib/xmodule/xmodule/x_module.py @@ -409,7 +409,7 @@ class XModuleDescriptor(Plugin, HTMLSnippet, ResourceTemplates): # cdodge: this is a list of metadata names which are 'system' metadata # and should not be edited by an end-user - system_metadata_fields = ['data_dir', 'published_date', 'published_by'] + system_metadata_fields = ['data_dir', 'published_date', 'published_by', 'is_draft'] # A list of descriptor attributes that must be equal for the descriptors to # be equal