1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #27993 -- Fixed model form default fallback for SelectMultiple.

This commit is contained in:
heathervm
2017-03-31 07:10:08 -07:00
committed by Tim Graham
parent a0d29a9abe
commit 7d1e237753
6 changed files with 42 additions and 10 deletions

View File

@@ -714,6 +714,11 @@ class SelectMultiple(Select):
getter = data.get
return getter(name)
def value_omitted_from_data(self, data, files, name):
# An unselected <select multiple> doesn't appear in POST data, so it's
# never known if the value is actually omitted.
return False
class RadioSelect(ChoiceWidget):
input_type = 'radio'