django-mediumeditor
django-mediumeditor copied to clipboard
render() got an unexpected keyword argument 'renderer'
Hi, Does anyone have this problem with Django 2.1? I followed the installation strictly. Thanks
Me too
It is a problem for Django 2.1. You should add the renderer arg in render() method:
def render(self, name, value, attrs=None, renderer=None):
I have the same error with Django 2.2.3.
I had the same renderer() issue with django 3.0. To solve this error open file mediumeditor/widgets.py (where your python packages are install) Eg:- python/lib/python3-6/site-packages/mediumeditor/widgets.py, in which the MediumEditorTextarea() class exist and add rendered=None inside render function parameters(as shown below)
class MediumEditorTextarea(forms.Textarea): def render(self, name, value, attrs=None, renderer=None):