Removed useless itertools.chain() call in ChoiceWidget.optgroups().

This commit is contained in:
Sergey Fedoseev 2017-08-31 17:04:36 +05:00 committed by Tim Graham
parent 11cd46930e
commit f0d9ede9e6
1 changed files with 1 additions and 1 deletions

View File

@ -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 = ''