Django-pghistory

Latest version: v3.2.0

Safety actively analyzes 621920 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

3.2.0

Bug

- Fix Empty List being passed into create_event_model [Maxwell Muoto, b89c86d]

Fix Empty List being passed into create_event_model

3.1.1

Trivial

- Fix ReadTheDocs builds. [Wesley Kendall, eda0741]

3.1.0

Feature

- Django 5.0 compatibility [Wesley Kendall, 934ca6d]

Support and test against Django 5 with psycopg2 and psycopg3.

3.0.1

Trivial

- Add upgrading notes around the default related name changing. [Wesley Kendall, c5d8a1f]

3.0.0

Api-Break

- V3 release with new event trackers [Wesley Kendall, 8849fc6]

Version three of `django-pghistory` has some of the following breaking changes:

- Removal of code deprecated in version 2.5 related to configuring event models
- Consolidation of the event trackers. `pghistory.Snapshot` and all custom
event trackers such as `pghistory.BeforeDelete` and `pghistory.AfterInsertOrUpdate`
were consolidated into three core event trackers: `pghistory.InsertEvent`,
`pghistory.UpdateEvent`, and `pghistory.DeleteEvent`.
- There are new default `pgh_label` values in the new event trackers
- The `pghistory.models.Events` proxy aggregate model has some minor breaking
functionality.

Along with this, default arguments to `pghistory.track` were changed and
a setting was introduced to override the global default history trackers.

There's an entire section called "Upgrading" in the docs
at django-pghistory.readthedocs.io that goes over the breaking changes in
more detail, along with how to preserve the default functionality from
version two.

Feature

- Support append-only event models [Wesley Kendall, 9002d35]

Supply `append_only=True` to `pghistory.track` or `pghistory.create_event_model` to
create event models that protect updates and deletes.

Set `settings.PGHISTORY_APPEND_ONLY = True` to make this the default for all event
models.

2.9.0

Feature

- Add Python 3.12 support and use Mkdocs for documentation [Wesley Kendall, 4464ef3]

Python 3.12 and Postgres 16 are supported now, along with having revamped docs using Mkdocs and the Material theme.

Python 3.7 support was dropped.

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.