# django-commons/django-simple-history

Store model history and view/revert changes from admin site.

Repository: https://github.com/django-commons/django-simple-history
Canonical: https://ross.abutalabs.com/products/django-simple-history
Homepage: https://django-simple-history.readthedocs.org
Language: Python
License: BSD-3-Clause
License Family: permissive
Last push: 2026-08-17T18:48:22+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 82, longevity 100
- inputs: {"age_days": 5659, "days_push": 16, "days_rel": 42, "gap_med": 87.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2461, forks 507 (observed 2026-08-28T04:06:53.453604+00:00)

## What it is
A Django app that records the state of models on every create, update, and delete, storing a full change history. It integrates with the Django admin so users can view and revert changes.

## Use cases
- track every change made to Django model instances
- audit who changed what and when in a Django app
- revert a model to a previous state from the admin
- keep a historical log of record deletions
- query past versions of a database row

## When to choose
- you need per-record audit history in a Django project
- you want admin-integrated viewing and reverting of changes
- you need a mature, widely used Django history solution

## When to avoid
- you are not using Django or an ORM with similar hooks
- you need full database-level audit logs rather than application-level model history
- you need event sourcing with complex replay semantics

## Facets
- artifact type: library
- maturity: active
- function: orm, logging, middleware
- domain: databases, web-development, backend, developer-tools
- platform: python
- tags: django, audit-trail, model-history, versioning, admin, web-server

## Member repositories
- django-commons/django-simple-history (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:53.453604+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:29:19.448325+00:00, confidence not recorded.
  - readme: https://github.com/django-commons/django-simple-history (fetched 2026-08-28T04:06:53.453604+00:00, sha 9abdeb2bc28e)
  - registry_pypi: https://pypi.org/pypi/django-simple-history/json (fetched 2026-08-29T10:11:36.128578+00:00, sha a4538cd10583)
- Data as of 2026-08-30T08:39:29.467469+00:00.
