From c7d522393930dabc1bb6997bbc2b450d043817e8 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Wed, 1 Aug 2018 17:26:57 +0100 Subject: [PATCH] Fix WidgetWithScript to accept renderer kwarg --- wagtail/utils/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/utils/widgets.py b/wagtail/utils/widgets.py index f970c535b7..4cd56b8b34 100644 --- a/wagtail/utils/widgets.py +++ b/wagtail/utils/widgets.py @@ -7,7 +7,7 @@ class WidgetWithScript(Widget): """Render the HTML (non-JS) portion of the field markup""" return super().render(name, value, attrs) - def render(self, name, value, attrs=None): + def render(self, name, value, attrs=None, renderer=None): # no point trying to come up with sensible semantics for when 'id' is missing from attrs, # so let's make sure it fails early in the process try: