diff options
| author | Tom Christie | 2015-02-11 14:19:07 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-02-11 14:19:07 +0000 |
| commit | c3425accdedb64e99238619f8f740bb547b2ecef (patch) | |
| tree | 1a4c886daa8b01036b6d37de3a0ff1881441380a /rest_framework | |
| parent | fbb21caaaa01033bbd34b0c63ab48243ffb6310e (diff) | |
| download | django-rest-framework-c3425accdedb64e99238619f8f740bb547b2ecef.tar.bz2 | |
Fix incorrect HTML parsing for DictField
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/fields.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 382fd2dd..a5348922 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -1192,9 +1192,9 @@ class DictField(Field): def get_value(self, dictionary): # We override the default field access in order to support - # lists in HTML forms. + # dictionaries in HTML forms. 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) def to_internal_value(self, data): |
