Django Auditlog Versions Save

A Django app that keeps a log of changes made to an object.

v3.0.0

1 month ago

What's Changed

New Contributors

Full Changelog: https://github.com/jazzband/django-auditlog/compare/v2.2.1...v3.0.0

v3.0b4

4 months ago

3.0.0-beta.4 (2024-01-02)

Improvements

  • feat: If any receiver returns False, no logging will be made. This can be useful if logging should be conditionally enabled / disabled (#590)
  • Django: Confirm Django 5.0 support (#598)
  • Django: Drop Django 4.1 support (#598)

v3.0b3

4 months ago

3.0.0-beta.3 (2023-11-13)

Improvements

  • Python: Confirm Python 3.12 support (#572)
  • feat: thread.local replaced with ContextVar to improve context managers in Django 4.2+

Fixes

  • fix: Handle ObjectDoesNotExist in evaluation of object_repr (#592)

v3.0b2

4 months ago

3.0.0-beta.2 (2023-10-05)

Breaking Changes

  • feat: stop deleting old log entries when a model with the same pk is created (i.e. the pk value is reused) (#559)

Fixes

  • fix: only fire the post_log signal when the log is created or when there is an error in the process (#561)
  • fix: don't set the correlation_id if the AUDITLOG_CID_GETTER is None (#565)

v3.0b1

8 months ago

3.0.0-beta.1

Breaking Changes

  • feat: Change LogEntry.change field type to JSONField rather than TextField. This change include a migration that may take time to run depending on the number of records on your LogEntry table (#407)(#495)
  • Python: Drop support for Python 3.7 (#546)
  • feat: Set AuditlogHistoryField.delete_related to False by default. This is different from the default configuration of Django's GenericRelation, but we should not erase the audit log of objects on deletion by default. (#557)

Improvements

  • Changes the view when it has changes in fields JSONField. The JSONField.encoder is assigned to json.dumps. (#489)
  • feat: Added support for Correlation ID. (#481)
  • feat: Added pre-log and post-log signals. (#483)
  • feat: Make timestamp in LogEntry overwritable. (#476)
  • feat: Support excluding field names globally when AUDITLOG_INCLUDE_ALL_MODELS is enabled. (#498)
  • feat: Improved auto model registration to include auto-created models and exclude non-managed models, and automatically register m2m fields for models. (#550)

Fixes

  • fix: Audit changes to FK fields when saved using *_id naming. (#525)
  • fix: Fix a bug in audit log admin page when USE_TZ=False. (#511)
  • fix: Make sure LogEntry.changes_dict() returns an empty dict instead of None when json.loads() returns None. (#472)
  • fix: Always set remote_addr even if the request has no authenticated user. (#484)
  • fix: Fix a bug in getting field's verbose_name when model is not accessible. (508)
  • fix: Fix a bug in serialized_data with F expressions. (508)
  • fix: Make log entries read-only in the admin. (#449, #556) (applied again after being reverted in 2.2.2)

v1.0a1

3 years ago

This release adds support for Django 3.0, and drops support for Python 2 and unsupported Django versions (most notably Django 1.11).

Overview of changes: https://github.com/jjkester/django-auditlog/pull/263

v0.4.5

6 years ago

Added support for Django 2.0, along with a number of bug fixes.

v0.4.4

6 years ago

Release notes to be added soon.

v0.4.3

7 years ago

Fixes

  • Fixes cricital bug in admin mixin making the library only usable on Django 1.11 (thanks, @audiolion)

v0.4.2

7 years ago

As it turns out, haste is never good. Due to the focus on quickly releasing this version a nasty bug was not spotted, which makes this version only usable with Django 1.11 and above. Upgrading to 0.4.3 is not only encouraged but most likely necessary. Apologies for the inconvenience and lacking quality control.

Improvements

  • Models can be registered with decorators now (thanks @skorokithakis)

Fixes

  • A lot, yes, really a lot, of fixes for the admin integration, with thanks to @Kurocon, @chris-griffin, @fernandoe, @skorokithakis and @fsniper.
  • Flush command fixed for Django 1.10 (thanks @goodmase)