Skip to content

Releases: jazzband/django-auditlog

v3.0.0

12 Apr 09:55
ceae2f9
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.2.1...v3.0.0

3.0.0-beta.4

04 Jan 08:51
1ce39c0
Compare
Choose a tag to compare
3.0.0-beta.4 Pre-release
Pre-release

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)

3.0.0-beta.3

03 Jan 14:41
5072f5d
Compare
Choose a tag to compare
3.0.0-beta.3 Pre-release
Pre-release

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)

3.0.0-beta.2

03 Jan 14:40
e699e7d
Compare
Choose a tag to compare
3.0.0-beta.2 Pre-release
Pre-release

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)

3.0.0-beta.1

29 Aug 12:28
9f1a09b
Compare
Choose a tag to compare
3.0.0-beta.1 Pre-release
Pre-release

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)

1.0 alpha 1

07 Sep 16:09
Compare
Choose a tag to compare
1.0 alpha 1 Pre-release
Pre-release

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: #263

0.4.5

12 Jan 22:46
1c8d60b
Compare
Choose a tag to compare
0.4.5 Pre-release
Pre-release

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

0.4.4

18 Nov 15:04
e33aef8
Compare
Choose a tag to compare
0.4.4 Pre-release
Pre-release

Release notes to be added soon.

0.4.3

16 Feb 21:35
Compare
Choose a tag to compare
0.4.3 Pre-release
Pre-release

Fixes

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

0.4.2

16 Feb 14:37
Compare
Choose a tag to compare
0.4.2 Pre-release
Pre-release

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