Fixed typo in django/forms/widgets.py.
This commit is contained in:
parent
33401cba93
commit
6045b1f041
|
@ -580,7 +580,7 @@ class ChoiceWidget(Widget):
|
||||||
yield from self.options(name, value, attrs)
|
yield from self.options(name, value, attrs)
|
||||||
|
|
||||||
def options(self, name, value, attrs=None):
|
def options(self, name, value, attrs=None):
|
||||||
"""Yield a flat list of options for this widgets."""
|
"""Yield a flat list of options for this widget."""
|
||||||
for group in self.optgroups(name, value, attrs):
|
for group in self.optgroups(name, value, attrs):
|
||||||
yield from group[1]
|
yield from group[1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue