From aea4dfb46d2a3d117dbcda85d3bf4cf23507d69e Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 19 Dec 2005 03:28:43 +0000 Subject: [PATCH] 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 --- django/core/formfields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/formfields.py b/django/core/formfields.py index bde4b1abbd..103c3e099f 100644 --- a/django/core/formfields.py +++ b/django/core/formfields.py @@ -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)