From e4dab20a2728d50a3a61bae97bb95e71a78557bb Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 23 Jan 2017 04:33:27 -0800 Subject: [PATCH] [1.11.x] Removed ChoiceWidget.render() as it duplicates parent implementation. Backport of ecd5944666558bbb3a12b0aa0058685a81ce7162 from master --- django/forms/widgets.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/django/forms/widgets.py b/django/forms/widgets.py index a2f674fcdd..0a170b0118 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -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):