A Django app that keeps a log of changes made to an object.
Find a file
2022-01-04 11:27:52 +01:00
.github/workflows Add Python 3.10 to testing matrix. 2021-11-04 20:40:23 +01:00
auditlog Add a DB index to LogEntry's action field (#236) 2022-01-04 10:06:45 +01:00
auditlog_tests Add DEFAULT_AUTO_FIELD to test settings. 2021-05-25 00:50:02 +02:00
docs Replace MIDDLEWARE_CLASSES with MIDDLEWARE in docs. 2021-06-03 13:23:11 +02:00
.gitignore Clean up project structure 2020-09-07 16:52:32 +02:00
.pre-commit-config.yaml Add .pre-commit-config.yaml file. 2021-11-04 20:40:23 +01:00
CHANGES.rst Add Python 3.10 to testing matrix. 2021-11-04 20:40:23 +01:00
CODE_OF_CONDUCT.md Jazzband: Created local 'CODE_OF_CONDUCT.md' from remote 'CODE_OF_CONDUCT.md' 2022-01-04 11:27:52 +01:00
CONTRIBUTING.md Changes for Jazzband (#269) 2020-10-23 12:16:27 +02:00
LICENSE Bump copyright year 2020-09-07 16:52:32 +02:00
pyproject.toml Remove Python 3.5 support. (#301) 2021-05-24 01:25:46 +02:00
README.md Update README to include updates to release strategy (#221) 2022-01-04 09:34:39 +01:00
runtests.py Add black and format files with black. 2020-12-06 23:10:18 +01:00
setup.py Add Python 3.10 to testing matrix. 2021-11-04 20:40:23 +01:00
tox.ini Pin psycopg2-binary to 2.8.6 2021-11-04 20:40:23 +01:00

django-auditlog

Jazzband Build Status Docs codecov Supported Python versions Supported Django versions

Please remember that this app is still in development. Test this app before deploying it in production environments.

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 Djangos 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 Djangos admin. Unlike the log from Djangos 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 http://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. Bump versions in setup.py and docs/source/conf.py (docs have 2 places where the versions need to be changed!)
  4. Pull request vX.Y.Z -> master.
  5. Pull request master -> stable. This merge triggers the deploy to pypi.