﻿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
28534	Changing JSONField on inline in admin doesn't always trigger change	john-parton	shangdahao	"If you have an inline with a JSONField and an initial value of {'key': 1} and you try to change it to {'key': True} without any other changes, the admin won't save your change. I believe this is because JSONField.has_changed() just uses simple equality checking and {'key': True} == {'key': 1} with a basic equality test in python.

Here's the minimal test case:

{{{
>>> from django.contrib.postgres.forms import JSONField
>>> JSONField().has_changed({'a': True}, '{""a"": 1}')
False
}}}

Let me know if there's any other information you need.

Thanks.
"	Bug	closed	Forms	1.11	Normal	fixed			Accepted	1	0	0	0	0	0
