Commit 3a13cd7b by Will Daly

Merged changes in factories.py with version in master

parent e41bb846
......@@ -164,9 +164,9 @@ class XModuleItemFactory(Factory):
new_item.display_name = display_name
# Add additional metadata or override current metadata
new_item.metadata.update(metadata)
store.update_metadata(new_item.location.url(), own_metadata(new_item))
item_metadata = own_metadata(new_item)
item_metadata.update(metadata)
store.update_metadata(new_item.location.url(), item_metadata)
# replace the data with the optional *data* parameter
if data is not None:
......
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