From 07059d0dfc5c0d20cd00fb84dbfa0a2bc254416a Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 11 Mar 2013 14:32:56 -0400 Subject: [PATCH] Iterate over metadata items when setting module info --- cms/djangoapps/contentstore/module_info_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/module_info_model.py b/cms/djangoapps/contentstore/module_info_model.py index d866156f03..8ea6add88d 100644 --- a/cms/djangoapps/contentstore/module_info_model.py +++ b/cms/djangoapps/contentstore/module_info_model.py @@ -74,7 +74,7 @@ def set_module_info(store, location, post_data): # update existing metadata with submitted metadata (which can be partial) # IMPORTANT NOTE: if the client passed pack 'null' (None) for a piece of metadata that means 'remove it' - for metadata_key in posted_metadata.keys(): + for metadata_key, value in posted_metadata.items(): # let's strip out any metadata fields from the postback which have been identified as system metadata # and therefore should not be user-editable, so we should accept them back from the client