Removed ChoiceWidget.render() as it duplicates parent implementation.
This commit is contained in:
parent
8377a98ca5
commit
ecd5944666
|
@ -539,10 +539,6 @@ class ChoiceWidget(Widget):
|
||||||
for option in self.options(name, value, attrs):
|
for option in self.options(name, value, attrs):
|
||||||
yield option
|
yield option
|
||||||
|
|
||||||
def render(self, name, value, attrs=None, renderer=None):
|
|
||||||
context = self.get_context(name, value, attrs)
|
|
||||||
return self._render(self.template_name, context, renderer)
|
|
||||||
|
|
||||||
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 widgets."""
|
||||||
for group in self.optgroups(name, value, attrs):
|
for group in self.optgroups(name, value, attrs):
|
||||||
|
|
Loading…
Reference in New Issue