fix for creator/contributor identifier bug
@@ -313,7 +313,7 @@ class Party(AbstractMetaDataElement):
def get_post_data_with_identifiers(cls, request, as_json=True):
identifier_names = request.POST.getlist('identifier_name')
identifier_links = request.POST.getlist('identifier_link')
- identifiers = None
+ identifiers = {}
if identifier_links and identifier_names:
if len(identifier_names) != len(identifier_links):
raise Exception("Invalid data for identifiers")
@@ -325,7 +325,6 @@ class Party(AbstractMetaDataElement):
identifiers = json.dumps(identifiers)
post_data_dict = request.POST.dict()
- if identifiers is not None:
post_data_dict['identifiers'] = identifiers
return post_data_dict
