aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/fields.py
diff options
context:
space:
mode:
authorTom Christie2015-02-11 14:19:07 +0000
committerTom Christie2015-02-11 14:19:07 +0000
commitc3425accdedb64e99238619f8f740bb547b2ecef (patch)
tree1a4c886daa8b01036b6d37de3a0ff1881441380a /rest_framework/fields.py
parentfbb21caaaa01033bbd34b0c63ab48243ffb6310e (diff)
downloaddjango-rest-framework-c3425accdedb64e99238619f8f740bb547b2ecef.tar.bz2
Fix incorrect HTML parsing for DictField
Diffstat (limited to 'rest_framework/fields.py')
-rw-r--r--rest_framework/fields.py4
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):