Django-auditlog

Latest version: v3.0.0

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

3.0.0

Fixes

- Fixed logging problem related to django translation before logging ([624](https://github.com/jazzband/django-auditlog/pull/624))
- Fixed manuall logging when model is not registered ([627](https://github.com/jazzband/django-auditlog/pull/627))

Improvements
- feat: Excluding ip address when `AUDITLOG_DISABLE_REMOTE_ADDR` is set to True ([620](https://github.com/jazzband/django-auditlog/pull/620))

3.0.0beta.4

Improvements

- feat: If any receiver returns False, no logging will be made. This can be useful if logging should be conditionally enabled / disabled ([590](https://github.com/jazzband/django-auditlog/pull/590))
- Django: Confirm Django 5.0 support ([598](https://github.com/jazzband/django-auditlog/pull/598))
- Django: Drop Django 4.1 support ([598](https://github.com/jazzband/django-auditlog/pull/598))

3.0.0beta.3

Improvements

- Python: Confirm Python 3.12 support ([572](https://github.com/jazzband/django-auditlog/pull/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](https://github.com/jazzband/django-auditlog/pull/592))

3.0.0beta.2

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](https://github.com/jazzband/django-auditlog/pull/559))

Fixes
* fix: only fire the `post_log` signal when the log is created or when there is an error in the process ([561](https://github.com/jazzband/django-auditlog/pull/561))
* fix: don't set the correlation_id if the `AUDITLOG_CID_GETTER` is `None` ([565](https://github.com/jazzband/django-auditlog/pull/565))

3.0.0beta.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](https://github.com/jazzband/django-auditlog/pull/407))([#495](https://github.com/jazzband/django-auditlog/pull/495))
- Python: Drop support for Python 3.7 ([546](https://github.com/jazzband/django-auditlog/pull/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](https://github.com/jazzband/django-auditlog/pull/557))

Improvements

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

Fixes

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

2.2.2

Fixes
- fix: revert [449](https://github.com/jazzband/django-auditlog/pull/449) "Make log entries read-only in the admin" as it breaks deletion of any auditlogged model through the admin when `AuditlogHistoryField` is used. ([#496](https://github.com/jazzband/django-auditlog/pull/496))

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.