Feature request (discussion): custom rendering for readonly fields in admin

Hello, we have a use case for this feature in OpenWISP, precisely in openwisp-controller.config.admin.TemplateForm. We use a custom widget to render the field value (JSON) using a JSONSchema form generator.

In the ticket. it is suggested to set the read_only attribute on the widget instance. I want to highlight that this workaround wouldn’t work on the Django’s main branch after this commit which removes the check for read_only widget.

1 Like