BOM-1147 Widget.render change

This commit is contained in:
Zulqarnain
2020-01-14 15:15:19 +05:00
parent 3eb4154c6b
commit 834079104b
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ class CodeMirrorWidget(forms.Widget):
default_attrs.update(attrs)
super(CodeMirrorWidget, self).__init__(default_attrs)
def render(self, name, value, attrs=None):
def render(self, name, value, attrs=None, renderer=None):
if value is None:
value = ''

View File

@@ -16,7 +16,7 @@ from openedx.core.djangolib.markup import HTML, Text
class TermsOfServiceCheckboxInput(CheckboxInput):
""" Renders a checkbox with a label linking to the terms of service. """
def render(self, name, value, attrs=None):
def render(self, name, value, attrs=None, renderer=None):
extra_attrs = attrs.copy()
extra_attrs.update({'type': 'checkbox', 'name': name})
final_attrs = self.build_attrs(self.attrs, extra_attrs=extra_attrs)