Fix nested HTML dictionaries. Closes #3314.

This commit is contained in:
Tom Christie 2015-09-03 11:23:58 +01:00
parent 4dfc66e45d
commit f9d1a34fdd

View File

@ -78,7 +78,7 @@ def parse_html_dict(dictionary, prefix=''):
}
}
"""
ret = {}
ret = MultiValueDict()
regex = re.compile(r'^%s\.(.+)$' % re.escape(prefix))
for field, value in dictionary.items():
match = regex.match(field)