5👍
✅
With Django 1.7 I used jsonfield 0.9
, but now I installed jsonfield 1
and there’s a significant difference between them. Unfortunately, jsonfield 0.9
makes use of simplejson
(from django.utils import simplejson as json
), which is not available in Django 1.9.
As I’m using Django 1.9 anyways and there’s built-in support for JSONField
in django.contrib.postgres.fields
, I switched to it. I solved my problems by adding null=True
, blank=True
to JSONField
definition:
JSONField(null=True, blank=True)
Source:stackexchange.com