Commit c3425acc by Tom Christie

Fix incorrect HTML parsing for DictField

parent fbb21caa
...@@ -1192,9 +1192,9 @@ class DictField(Field): ...@@ -1192,9 +1192,9 @@ class DictField(Field):
def get_value(self, dictionary): def get_value(self, dictionary):
# We override the default field access in order to support # We override the default field access in order to support
# lists in HTML forms. # dictionaries in HTML forms.
if html.is_html_input(dictionary): if html.is_html_input(dictionary):
return html.parse_html_list(dictionary, prefix=self.field_name) return html.parse_html_dict(dictionary, prefix=self.field_name)
return dictionary.get(self.field_name, empty) return dictionary.get(self.field_name, empty)
def to_internal_value(self, data): def to_internal_value(self, data):
......
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