Fix WidgetWithScript to accept renderer kwarg

pull/4718/head
Matt Westcott 2018-08-01 17:26:57 +01:00 zatwierdzone przez Matt Westcott
rodzic 1478d324d1
commit c7d5223939
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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: