mirror of
https://github.com/django/django.git
synced 2025-03-25 08:40:45 +00:00
[1.11.x] Removed ChoiceWidget.render() as it duplicates parent implementation.
Backport of ecd5944666558bbb3a12b0aa0058685a81ce7162 from master
This commit is contained in:
parent
a15d81a183
commit
e4dab20a27
@ -554,10 +554,6 @@ class ChoiceWidget(Widget):
|
||||
for option in self.options(name, value, attrs):
|
||||
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):
|
||||
"""Yield a flat list of options for this widgets."""
|
||||
for group in self.optgroups(name, value, attrs):
|
||||
|
Loading…
x
Reference in New Issue
Block a user