Closed musemby closed 2 years ago
@musemby I agree this should me more prominent on the docs: Problem is that the latest readthedocs version is super outdated and needs to be rebuild from master. See https://github.com/justquick/django-activity-stream/blob/master/docs/source/data.rst
You can add the data
field later on, I did that a year or so ago. This was my step-by-step recipe, you may have to change which library you are un/installing, as that currently specifies which JSONField to use:
$ pip uninstall django-jsonfield django-jsonfield-compat
$ pip install django-mysql
USE_JSONFIELD
is non-existent or set to False
$ python manage.py migrate actstream 0001
ACTSTREAM_SETTINGS = {
"USE_JSONFIELD": True,
}
$ python manage.py migrate actstream
If a user starts off with
USE_JSONFIELD
set toFalse
because they do not need to use.data
but then later on realize they do need it, there is no clean way to add the data field to the action model. The migration0002_remove_action_data
removes the field ifUSE_JSONFIELD
is False initially but there is no migration to add it later. Otherwise it should be explicitly mentioned as a caveat on the documentation.