diff --git a/src/edrnsite.content/src/edrnsite/content/_dataset_metadata_form.py b/src/edrnsite.content/src/edrnsite/content/_dataset_metadata_form.py index 116fd9b..569d00c 100644 --- a/src/edrnsite.content/src/edrnsite/content/_dataset_metadata_form.py +++ b/src/edrnsite.content/src/edrnsite/content/_dataset_metadata_form.py @@ -162,7 +162,7 @@ def _code(self, identifier: str) -> str: return urlparse(identifier).path.split('/')[-1] def render_email(self, form): data = form.cleaned_data - cp = ConfigParser() + cp = ConfigParser(interpolation=None) cp.optionxform = lambda option: option cp.add_section('Dataset') cp.set('Dataset', 'DatasetName', data['name']) diff --git a/src/edrnsite.content/src/edrnsite/content/_metadata_collection_form.py b/src/edrnsite.content/src/edrnsite/content/_metadata_collection_form.py index d939315..c44ba21 100644 --- a/src/edrnsite.content/src/edrnsite/content/_metadata_collection_form.py +++ b/src/edrnsite.content/src/edrnsite/content/_metadata_collection_form.py @@ -168,7 +168,7 @@ def _code(self, identifier: str) -> str: return urlparse(identifier).path.split('/')[-1] def render_email(self, form): data = form.cleaned_data - cp = ConfigParser() + cp = ConfigParser(interpolation=None) cp.optionxform = lambda option: option cp.add_section('Collection') cp.set('Collection', 'CollectionName', data['collection_name'])