Commit 0078f661 by Keryn Knight

Fixed #3235 - A querydict which yields a list with only one value now correctly…

Fixed #3235 - A querydict which yields a list with only one value now correctly returns the provided data.
parent 08d60f5c
......@@ -1384,7 +1384,7 @@ class ListField(Field):
# 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)
......
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