Django Pghistory

screenshot of Django Pghistory

Track historical events to Django models using Postgres triggers.

Overview

django-pghistory is a tool that tracks changes to Django models using Postgres triggers. It offers reliable history tracking without altering application code. With structured history models reflecting model fields, grouping history with additional context like the logged-in user, and various configuration options, it provides a comprehensive solution for history tracking needs.

Features

  • Reliable History Tracking: Tracks changes to Django models using Postgres triggers.
  • Structured History Models: Mirrors the fields of your models in history models.
  • Grouping with Additional Context: Allows grouping of history with context like the logged-in user.
  • Configuration Options: Various ways to configure history tracking for performance and scale.
  • Admin Integration: Comes with an admin integration and middleware out of the box.

Summary

django-pghistory provides a seamless way to track changes to Django models using Postgres triggers. With features like structured history models, grouping with additional context, and easy configuration options, it simplifies history tracking without requiring changes to application code. With the included admin integration and middleware, django-pghistory offers a comprehensive solution for tracking and managing historical events in Django projects.