Commit eebb78fc authored by Willem ter Berg's avatar Willem ter Berg

added typechecking before list conversion

parent 4b2bd3b1
......@@ -61,6 +61,11 @@ def convert_to_list_if_string(key, data_dict, errors, context):
values = data_dict[key]
if isinstance(values, list):
return key, data_dict, errors, context
values.replace('"', '')
if isinstance(values, basestring) and values.startswith('{') and values.endswith('}'):
values = values.replace('"', '')
data_dict[key] = values[1:len(values) - 1].split(',')
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