Django-pghistory

Latest version: v3.5.1

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

Scan your dependencies

Page 6 of 8

2.0.1

Not secure
Trivial

- Fix release note rendering and code formatting changes [Wes Kendall, 7043553]

2.0.0

Not secure
Api-Break

- Integration with Django's migration system [Wes Kendall, e0acead]

``django-pghistory`` upgrades ``django-pgtrigger``, which now integrates
with the Django migration system.

Run ``python manage.py makemigrations`` to make migrations for the triggers
created by ``django-pghistory`` in order to upgrade.

If you are tracking changes to third-party models, register the tracker on
a proxy model so that migrations are created in the proper app.

Feature

- Remove dependency on ``django-pgconnection`` [Wes Kendall, aea6056]

``django-pghistory`` no longer requires that users wrap ``settings.DATABASES``
with ``django-pgconnection``.

1.5.2

Not secure
Trivial

- Updated with latest Django template, fixing doc builds [Wes Kendall, 42cbc3c]

1.5.1

Not secure
Trivial

- Use `pk` instead of `id` to get the user's primary key [Eerik Sven Puudist, f105828]
- Fix default_app_config warning on Django 3.2+ [Adam Johnson, 8753bc4]

1.5.0

Not secure
Feature

- Add support for GET requests in pghistory middleware [Shivananda Sahu, ae2524e]

Currently the middleware adds a context for POST, PUT, PATCH and DELETE requests. Updating middleware to add a context for GET requests along with POST, PUT, PATCH and DELETE.

1.4.0

Not secure
Feature

- Allow target() to receive a queryset or list. [M Somerville, 0f34e91]

This expands the target() function to accept a queryset or a list of
objects on top of the existing one object.
- Add support for delete requests in pghistory middleware [Shivananda Sahu, 322d17e]

Currently the middleware adds a context for POST, PUT, and PATCH requests. This leaves out DELETE requests as the only ones that can affect a model without a context. Updating middleware to add a context for DELETE requests along with POST, PUT and PATCH.

Trivial

- Minor code formatting fixes [Wes Kendall, d0b7664]

Page 6 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.