Commit f4ad99b0 by Calen Pennington

Only set the xml slug if it isn't already set

parent 40f7bf90
...@@ -40,6 +40,7 @@ class XMLModuleStore(ModuleStore): ...@@ -40,6 +40,7 @@ class XMLModuleStore(ModuleStore):
except: except:
log.exception("Unable to parse xml: {xml}".format(xml=xml)) log.exception("Unable to parse xml: {xml}".format(xml=xml))
raise raise
if xml_data.get('slug') is None:
if xml_data.get('name'): if xml_data.get('name'):
xml_data.set('slug', Location.clean(xml_data.get('name'))) xml_data.set('slug', Location.clean(xml_data.get('name')))
else: else:
......
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