unstale

pypi / django-pghistory

django-pghistory

What changed in django-pghistory 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-26.

5 breaking1 new APIs and options2 behavior and defaults1 tooling5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.7 on npm

django-pghistory 37 changes

Breaking changes 2

  • Transaction-altering statements are no longer tracked in context tracking.

    3.9.0release notes

  • Python 3.9 is no longer supported.

    3.9.0release notes

Fixes and other changes 5

  • Fixes explicit condition overrides in RowEvent.__init__ that were unreliable.

    3.9.2release notes

  • Fixes explicit level overrides in RowEvent.__init__ that were unreliable.

    3.9.2release notes

  • Django 6.0 support was added.

    3.9.0release notes

  • Postgres 18 support was added.

    3.9.0release notes

  • Python 3.14 support was added.

    3.9.0release notes

django-pghistory 27 changes

Breaking changes 3

  • Version 2 requires django-pgtrigger 4.5 or later to avoid possible migration-related bugs.

    2.0.0upgrade guide

  • When tracking third-party models, register trackers on proxy models; otherwise, trigger migrations are created outside the project.

    2.0.0upgrade guide

  • Setting this to True along with settings.PGTRIGGER_MIGRATIONS=False preserves the legacy behavior of how triggers were installed.

    2.0.0upgrade guide

New APIs and options 1

  • Set this setting to False to disable django-pgtrigger integration with migrations entirely.

    2.0.0upgrade guide

Behavior and default changes 2

  • Triggers created by django-pghistory now integrate with Django migrations. Run python manage.py makemigrations to upgrade; register trackers for third-party models on a proxy model so migrations are created in the proper app.

    2.0.0release notes

  • django-pghistory no longer requires users to wrap settings.DATABASES with django-pgconnection.

    2.0.0release notes

Tooling 1

  • Run this command to create migrations for triggers when upgrading to version 2.

    2.0.0upgrade guide