mirror of
https://github.com/django/django.git
synced 2025-09-27 12:39:17 +00:00
Removed useless itertools.chain() call in ChoiceWidget.optgroups().
This commit is contained in:
parent
11cd46930e
commit
f0d9ede9e6
1 changed files with 1 additions and 1 deletions
|
@ -583,7 +583,7 @@ class ChoiceWidget(Widget):
|
||||||
groups = []
|
groups = []
|
||||||
has_selected = False
|
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:
|
if option_value is None:
|
||||||
option_value = ''
|
option_value = ''
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue