Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render() got an unexpected keyword argument 'renderer' #82

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

jikoy
Copy link

@jikoy jikoy commented Dec 26, 2018

Request Method: GET
http://127.0.0.1:8000/admin/blog/article/1/change/
2.1.4
TypeError
render() got an unexpected keyword argument 'renderer'
F:\mysite\UEditor\venv\lib\site-packages\django\forms\boundfield.py in as_widget, line 93
F:\mysite\UEditor\venv\Scripts\python.exe
3.7.1

解决方法,不知道是否正确。我注释了 boundfield.py 第93行,就能运行了。大牛看一下。

tuweizhong and others added 7 commits August 14, 2015 17:46
This reverts commit 3974266.
已在 python3.4 + django1.8 上测试过,可以正常使用,只是上传图片一直失败。

Revert "Revert "兼容Python3改进""

This reverts commit
f612eeb776320a73b5cb7d40de64e7e323fbde27.

Revert "兼容Python3改进"

This reverts commit
3974266.
@sazima
Copy link

sazima commented Jun 1, 2019

提一句:DjangoUeditor出现bug,设法去修改django的源码是非常不明智的。

解决方法: 将DjangoUeditor中的render方法加上一些可选参数就好了, 路径为: DjangoUeditor/widget.py

将:

 def render(self, name, value, attrs=None):

改为:

 def render(self, name, value, attrs=None, *args, **kwargs):

echo1937 and others added 6 commits August 2, 2019 09:25
def render(self, name, value, attrs=None):
# 修改为
def render(self, name, value, attrs=None, renderer=None):
fix widgets.py for Django >= 2.1:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants