BOM-1147 Widget.render change
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user