Commit 5c90bf9c by Xavier Ordoquy

Fix for #2894 thanks to @carljm

parent 94e2d3ca
......@@ -1060,7 +1060,11 @@ class MultipleChoiceField(ChoiceField):
# We override the default field access in order to support
# lists in HTML forms.
if html.is_html_input(dictionary):
return dictionary.getlist(self.field_name)
ret = dictionary.getlist(self.field_name)
if getattr(self.root, 'partial', False) and not ret:
ret = empty
return ret
return dictionary.get(self.field_name, empty)
def to_internal_value(self, data):
......
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