1
0
mirror of https://github.com/django/django.git synced 2024-12-23 09:36:06 +00:00

Changed django.core.formfields.CheckboxSelectMultipleField NOT to use the '_' variable

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1732 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-12-19 03:31:08 +00:00
parent e0acc619e8
commit 3a11722860

View File

@ -570,7 +570,7 @@ class CheckboxSelectMultipleField(SelectMultipleField):
# new_data has "split" this field into several fields, so flatten it
# back into a single list.
data_list = []
for value, _ in self.choices:
for value, readable_value in self.choices:
if new_data.get('%s%s' % (self.field_name, value), '') == 'on':
data_list.append(value)
new_data.setlist(self.field_name, data_list)