Skip to content

Commit

Permalink
Fixed #3235 - A querydict which yields a list with only one value now…
Browse files Browse the repository at this point in the history
… correctly returns the provided data.
  • Loading branch information
kezabelle committed Aug 7, 2015
1 parent 08d60f5 commit 0078f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ def get_value(self, dictionary):
# lists in HTML forms.
if html.is_html_input(dictionary):
val = dictionary.getlist(self.field_name, [])
if len(val) > 1:
if len(val) > 0:
# Support QueryDict lists in HTML input.
return val
return html.parse_html_list(dictionary, prefix=self.field_name)
Expand Down

0 comments on commit 0078f66

Please sign in to comment.