summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2017-08-31 17:04:36 +0500
committerTim Graham <timograham@gmail.com>2017-08-31 08:04:36 -0400
commitf0d9ede9e653c03052c5c7fdeae5b88feda267df (patch)
tree10fec9068d3b0afe5ad49aa769d97d74d0095c8d /django/forms/widgets.py
parent11cd46930e893a9cb28f7e05c7e221ed5d40f8e0 (diff)
Removed useless itertools.chain() call in ChoiceWidget.optgroups().
Diffstat (limited to 'django/forms/widgets.py')
-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 = ''