﻿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
27697	JSONField with blank=True is rendered as non-required field in a ModelForm	aruseni	Andrew Nester	"Try adding a JSONField with blank=True and without null=True to your model, and then use this model in the admin, the field will be rendered as a non-required field, and if you specify {} as the value, everything saves just fine.

If you don’t specify any value though, an error occurs:

{{{
null value in column ""json"" violates not-null constraint
}}}

If you just use a zero-configuration JSONField without blank=True, then the form will not validate when an empty dictionary is specified."	Bug	closed	Documentation	1.10	Normal	duplicate	postgres		Accepted	0	0	0	0	0	0
