summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
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 35904d3372..dbb3b2e851 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -583,7 +583,7 @@ class ChoiceWidget(Widget):
groups = []
has_selected = False
- for index, (option_value, option_label) in enumerate(chain(self.choices)):
+ for index, (option_value, option_label) in enumerate(self.choices):
if option_value is None:
option_value = ''