I am using Django 4.1 and GooglePointFieldWidget on PointFields.
The widget gets displayed as it should and I'm able to change the coordinates, set a marker on the map or even type in an address. All good.
The problem is that I'm getting a validation error upon saving the object because GooglePointFieldWidget fills in the hidden textarea of the field with invalid JSON, something like
I am using Django 4.1 and
GooglePointFieldWidget
onPointField
s.The widget gets displayed as it should and I'm able to change the coordinates, set a marker on the map or even type in an address. All good.
The problem is that I'm getting a validation error upon saving the object because
GooglePointFieldWidget
fills in the hiddentextarea
of the field with invalid JSON, something likewhen Django expects something like
How can I solve this validation error?