diff --git a/django/forms/__init__.py b/django/forms/__init__.py index 730f7a54da..241795312e 100644 --- a/django/forms/__init__.py +++ b/django/forms/__init__.py @@ -639,8 +639,8 @@ class CheckboxSelectMultipleField(SelectMultipleField): checked_html = ' checked="checked"' field_name = '%s%s' % (self.field_name, value) output.append('
  • ' % \ - (self.get_id() + value , self.__class__.__name__, field_name, checked_html, - self.get_id() + value, choice)) + (self.get_id() + escape(value), self.__class__.__name__, field_name, checked_html, + self.get_id() + escape(value), choice)) output.append('') return '\n'.join(output)