summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-01-20 08:19:06 -0800
committerTim Graham <timograham@gmail.com>2018-01-20 11:19:06 -0500
commit47d238b69602711c06c369a5555bb554a4b3f7fb (patch)
treef1972664cbf2065277a5562f8637054f65f4e11e /django/forms
parentb98dc1706e9c63a4cc7d061a3d8a95f6cbf5e950 (diff)
Fixed #29041 -- Changed SelectMultiple's multiple attribute to HTML5 boolean syntax.
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index 8ccf939acd..6ccbb86274 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -670,7 +670,7 @@ class Select(ChoiceWidget):
def get_context(self, name, value, attrs):
context = super().get_context(name, value, attrs)
if self.allow_multiple_selected:
- context['widget']['attrs']['multiple'] = 'multiple'
+ context['widget']['attrs']['multiple'] = True
return context
@staticmethod