magic-removal: Changed django.core.formfields.CheckboxSelectMultipleField NOT to use the '_' variable
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1730 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3a2c18ac53
commit
aea4dfb46d
|
@ -570,7 +570,7 @@ class CheckboxSelectMultipleField(SelectMultipleField):
|
||||||
# new_data has "split" this field into several fields, so flatten it
|
# new_data has "split" this field into several fields, so flatten it
|
||||||
# back into a single list.
|
# back into a single list.
|
||||||
data_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':
|
if new_data.get('%s%s' % (self.field_name, value), '') == 'on':
|
||||||
data_list.append(value)
|
data_list.append(value)
|
||||||
new_data.setlist(self.field_name, data_list)
|
new_data.setlist(self.field_name, data_list)
|
||||||
|
|
Loading…
Reference in New Issue