Commit 9f2776bb authored by Willem ter Berg's avatar Willem ter Berg

smallfix to list converter

parent 26e9ff70
......@@ -60,9 +60,9 @@ def convert_to_list_if_string(key, data_dict, errors, context):
:return: (key, data, errors, context), the original arguments, possibly modified
values = data_dict[key]
values = values.replace('"', '')
if isinstance(values, basestring) and values.startswith('{') and values.endswith('}'):
values = values.replace('"', '')
data_dict[key] = values[1:len(values) - 1].split(',')
return key, data_dict, errors, context
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