﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26949	Disabled forms.JSONField crashes with TypeError	Tim Graham	Olexander Yermakov	"The fix for #25532 is partially reverted to fix the regression in #26917 but this means the following test fails with `TypeError: the JSON object must be str, not 'list'.`:

{{{ #!python
def test_formfield_disabled(self):
    class JsonForm(Form):
        name = CharField()
        jfield = forms.JSONField(disabled=True)

    form = JsonForm({'name': 'xyz', 'jfield': '[""bar""]'}, initial={'jfield': ['foo']})
    self.assertIn('[&quot;foo&quot;]</textarea>', form.as_p())
}}}"	Bug	closed	contrib.postgres	1.9	Normal	fixed			Accepted	1	0	0	0	0	0
