Closed gogson closed 6 years ago
It seems like this is due to django-activity-stream not creating a field called data
.
You have to set the USE_JSONFIELD before installing the actstream and then doing the migration:
https://github.com/justquick/django-activity-stream/blob/1522fb3a12d16c56a7da3506b370956422cd44cc/actstream/migrations/0002_remove_action_data.py
So comment USE_JSONFIELD
run python manage.py migrate actstream 0001
then set USE_JSONFIELD
python manage.py migrate
The other option you can do is create the field manually with an sql command. data is just a text field
('data', DataField(blank=True, null=True, help_text='')),
I moved away from django-activity-stream, but thanks for the answer it may be useful for other people.
Installing jsonfield-compat makes my migrations fail with this error: TypeError: 'NoneType' object is not subscriptable
Seems like the error in located here https://github.com/kbussell/django-jsonfield-compat/blob/master/jsonfield_compat/convert.py#L23
Any idea how to fix this ?