Closed todorvelichkov closed 3 years ago
that was used for compatibility reason which is not needed in newer versions
I'm sorry @auvipy but I cannot understand you, what do you mean by "not needed"? Is there a way to provide an "encoder" kwarg to JSONField? Our app is storing data in Action.data
which cannot be encoded with the default json.JSONEncoder
so we definitely need this.
you can dig codes and find a solution, if that change is needed upstream, contributions are welcome.
We are updating out app from
Django 2.2 + django-activity-stream==0.8.0
toDjango 3.2 + django-activity-stream==0.10.0
In version
0.8.0
django-activity-stream used to work withjsonfield_compat
where JSONFIELD_ENCODER_CLASS can be used as a setting in order to set a customJSONField.encoder
. No such options exists anymore for Django'sJSONField
.