Fix incorrect HTML parsing for DictField

This commit is contained in:
Tom Christie 2015-02-11 14:19:07 +00:00
parent fbb21caaaa
commit c3425accde

View File

@ -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):