- Add support for Django 4+
- Cleanup stray .pyc files
- Fix Django2.0 admin interface bug
- Experimental Django2.0 support
- Dropped support for Django 1.7, 1.8, 1.9, Python 3.3, Python 3.4
- Gracefully handle models not registered in admin when rendering papertrail entry admin pages.
- Update the
message
field to be a TextField.
- Django 1.10 and 1.11 support.
- Make papertrail admin viewer resilient to the model class referenced by the related object not being available (this would happen, for example, when an app is removed from INSTALLED_APPS but it's Content Type object is still in the database).
- Add default Entry admin
- Add a new
data_adapter
argument topapertrail.log
. The method pointed by this argument allows the caller to pass a function which transformsdata
before it is written to the database. It defaults topapertrail.model.json_serializeable
which is a convenience method (albeit a tad slow) used to convert complex objects into JSON-serializeable representations. This includes dealing with datetime and Decimal fields which are not natively supported. This is a hack made necessary to allow easy logging of such data types as Django's built-inJSONField
does not provide a way to customize the JSON serialization :(
- Switched to testing with PostgreSQL
- Switch to using native JSONField on Django>=1.9. If you
are upgrading an existing installation you will need to
execute the following SQL command manually:
ALTER TABLE "papertrail_entry" ALTER COLUMN "data" TYPE jsonb USING "data"::jsonb;
This is because there is no easy way to change the underlying field AND dropping the dependency on django-jsonfield at the same time. Sorry :(
- Started tracking changes.