diff --git a/lms/djangoapps/course_wiki/editors.py b/lms/djangoapps/course_wiki/editors.py index f1841d33db..8dcd4ee822 100644 --- a/lms/djangoapps/course_wiki/editors.py +++ b/lms/djangoapps/course_wiki/editors.py @@ -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 = '' diff --git a/openedx/core/djangoapps/api_admin/widgets.py b/openedx/core/djangoapps/api_admin/widgets.py index f5d2f18675..7f138c7aac 100644 --- a/openedx/core/djangoapps/api_admin/widgets.py +++ b/openedx/core/djangoapps/api_admin/widgets.py @@ -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)