I have a little problem:
I have this model:
class myModel(models.Model):
myField =JSONField()
I want to update this field:
data={'rda': {'punti': 0, 'rank': 1, 'pos': 'eq'}}
a =myModel()
a.myField=data
a.save()
but I have this error:
Traceback (most recent call last): File "/home/hy0/.conda/envs/ciclods_env/lib/python3.7/site-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) psycopg2.DataError: malformed array literal: "{"rda": {"punti": 0, "rank": 1, "pos": "eq"}}"
how can I solve it?