Getting error when following the default installation instructions.
TypeError at /admin/core/user/5/change/
render() got an unexpected keyword argument 'renderer'
What I Did
Steps to reproduce:
pip install django-json-widget
settings.py
...
'django_json_widget',
...
]
admin.py
from django_json_widget.widgets import JSONEditorWidget
class JsonAdmin(admin.ModelAdmin):
formfield_overrides = {
JSONField: {'widget': JSONEditorWidget }
}
@admin.register(DuitUser)
class UserAdmin(JsonAdmin):
list_display = ('first_name', 'last_name', 'mobile_number')
4. Open localhost:8000/admin in browser. You should see the error `Exception Value: | render() got an unexpected keyword argument 'renderer'`
### Possible reasons
This is almost certainly because of this backwards-incompatible [change in Django 2.1](https://docs.djangoproject.com/en/2.1/releases/2.1/#features-removed-in-2-1).
https://stackoverflow.com/a/52039655/842837
Description
Getting error when following the default installation instructions.
What I Did
Steps to reproduce:
pip install django-json-widget
class JsonAdmin(admin.ModelAdmin): formfield_overrides = { JSONField: {'widget': JSONEditorWidget } }
@admin.register(DuitUser) class UserAdmin(JsonAdmin): list_display = ('first_name', 'last_name', 'mobile_number')