A Django app that keeps a log of changes made to an object.
  • Python 97.4%
  • HTML 1.6%
  • Makefile 0.5%
  • Shell 0.5%
Find a file
Youngkwang Yang 6a2a88f90f
Some checks failed
Test / SQLite • Python 3.10 (push) Has been cancelled
Test / SQLite • Python 3.11 (push) Has been cancelled
Test / SQLite • Python 3.12 (push) Has been cancelled
Test / SQLite • Python 3.13 (push) Has been cancelled
Test / SQLite • Python 3.14 (push) Has been cancelled
Test / PostgreSQL • Python 3.10 (push) Has been cancelled
Test / PostgreSQL • Python 3.11 (push) Has been cancelled
Test / PostgreSQL • Python 3.12 (push) Has been cancelled
Test / PostgreSQL • Python 3.13 (push) Has been cancelled
Test / PostgreSQL • Python 3.14 (push) Has been cancelled
Test / MySQL • Python 3.10 (push) Has been cancelled
Test / MySQL • Python 3.11 (push) Has been cancelled
Test / MySQL • Python 3.12 (push) Has been cancelled
Test / MySQL • Python 3.13 (push) Has been cancelled
Test / MySQL • Python 3.14 (push) Has been cancelled
Prepare release 3.4.2 (#863)
2026-11-08 23:40:44 +09:00
.github Bump the github-actions group with 4 updates (#860) 2026-11-08 10:42:13 +09:00
auditlog make model swappable (#805) 2026-08-03 13:02:09 +09:00
auditlog_tests Fix flaky test where MTI parent LogEntry surfaced at random (#832) 2026-07-11 10:32:54 +09:00
docs Switch release and project information to Django Commons (#851) 2026-11-01 00:43:35 +09:00
.gitignore Add I18N Support (#762) 2025-09-30 16:15:45 +02:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate (#845) 2026-09-01 08:15:33 +09:00
.readthedocs.yaml pip install . during RTD build (#578) 2023-10-27 19:31:36 +03:30
CHANGELOG.md Prepare release 3.4.2 (#863) 2026-11-08 23:40:44 +09:00
CODE_OF_CONDUCT.md Switch release and project information to Django Commons (#851) 2026-11-01 00:43:35 +09:00
CONTRIBUTING.md Switch release and project information to Django Commons (#851) 2026-11-01 00:43:35 +09:00
LICENSE Bump copyright year 2020-09-07 16:52:32 +02:00
Makefile Add I18N Support (#762) 2025-09-30 16:15:45 +02:00
MANIFEST.in Amend setup configuration to include non-python package files (#769) 2025-10-11 09:57:22 +02:00
pyproject.toml Drop Python 3.8 support (#678) 2024-10-17 18:40:21 +02:00
README.md Switch release and project information to Django Commons (#851) 2026-11-01 00:43:35 +09:00
runtests.sh Extend CI and local test coverage to MySQL and SQLite (#744) 2025-08-17 16:50:23 +02:00
setup.py Switch release and project information to Django Commons (#851) 2026-11-01 00:43:35 +09:00
tox.ini Add Django 6.1 to support matrix (#854) 2026-10-28 09:21:32 +09:00

django-auditlog

Build Status Docs codecov Supported Python versions Supported Django versions

Migrate to V3

Check the Upgrading to version 3 doc before upgrading to V3.

django-auditlog (Auditlog) is a reusable app for Django that makes logging object changes a breeze. Auditlog tries to use as much as Python and Django's built in functionality to keep the list of dependencies as short as possible. Also, Auditlog aims to be fast and simple to use.

Auditlog is created out of the need for a simple Django app that logs changes to models along with the user who made the changes (later referred to as actor). Existing solutions seemed to offer a type of version control, which was found excessive and expensive in terms of database storage and performance.

The core idea of Auditlog is similar to the log from Django's admin. Unlike the log from Django's admin (django.contrib.admin) Auditlog is much more flexible. Also, Auditlog saves a summary of the changes in JSON format, so changes can be tracked easily.

Documentation

The documentation for django-auditlog can be found on https://django-auditlog.readthedocs.org. The source files are available in the docs folder.

License

Auditlog is licensed under the MIT license (see the LICENSE file for details).

Contribute

If you have great ideas for Auditlog, or if you like to improve something, feel free to fork this repository and/or create a pull request. I'm open for suggestions. If you like to discuss something with me (about Auditlog), please open an issue.

Releases

  1. Make sure all tests on master are green
  2. Create a new branch vX.Y.Z from master for that specific release
  3. Update the CHANGELOG release date
  4. Pull request vX.Y.Z -> master
  5. As a project lead, once the PR is merged, create and push a tag vX.Y.Z: this will trigger the release GitHub action. A maintainer must then approve the deployment for the pypi environment, after which the package is published to PyPI via trusted publishing and a draft GitHub release is created
  6. Publish the draft GitHub release