mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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 = []
|
||||
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 = ''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue