mirror of
https://github.com/django/django.git
synced 2025-09-29 13:34:57 +00:00
Fixed typo in django/forms/widgets.py.
This commit is contained in:
parent
33401cba93
commit
6045b1f041
1 changed files with 1 additions and 1 deletions
|
@ -580,7 +580,7 @@ class ChoiceWidget(Widget):
|
|||
yield from self.options(name, value, attrs)
|
||||
|
||||
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):
|
||||
yield from group[1]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue