django-mediumeditor icon indicating copy to clipboard operation
django-mediumeditor copied to clipboard

render() got an unexpected keyword argument 'renderer'

Open patricktran159 opened this issue 6 years ago • 4 comments

Hi, Does anyone have this problem with Django 2.1? I followed the installation strictly. Thanks

patricktran159 avatar Sep 15 '18 12:09 patricktran159

Me too

KhanMaytok avatar Feb 12 '19 19:02 KhanMaytok

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

KhanMaytok avatar Feb 12 '19 19:02 KhanMaytok

I have the same error with Django 2.2.3.

eon01 avatar Oct 10 '19 21:10 eon01

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

hruturaj avatar Jul 08 '20 14:07 hruturaj