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