Django-auditlog

Latest version: v3.0.0

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

Scan your dependencies

Page 2 of 5

2.2.1

Fixes

- fix: Make log entries read-only in the admin. ([449](https://github.com/jazzband/django-auditlog/pull/449))
- fix: Handle IPv6 addresses in `X-Forwarded-For`. ([457](https://github.com/jazzband/django-auditlog/pull/457))

2.2.0

Improvements
- feat: Add `ACCESS` action to `LogEntry` model and allow object access to be logged. ([436](https://github.com/jazzband/django-auditlog/pull/436))
- feat: Add `serialized_data` field on `LogEntry` model. ([412](https://github.com/jazzband/django-auditlog/pull/412))
- feat: Display the field name as it would be displayed in Django Admin or use `mapping_field` if available [428](https://github.com/jazzband/django-auditlog/pull/428)
- feat: New context manager `disable_auditlog` to turn off logging and a new setting `AUDITLOG_DISABLE_ON_RAW_SAVE`
to disable it during raw-save operations like loaddata. [446](https://github.com/jazzband/django-auditlog/pull/446)
- Python: Confirm Python 3.11 support ([447](https://github.com/jazzband/django-auditlog/pull/447))
- feat: Replace the `django.utils.timezone.utc` by `datetime.timezone.utc`. [448](https://github.com/jazzband/django-auditlog/pull/448)

Fixes

- fix: Foreign key values are used to check for changes in related fields instead of object representations. When changes are detected, the foreign key value is persisted in `LogEntry.changes` field instead of object representations. ([420](https://github.com/jazzband/django-auditlog/pull/420))
- fix: Display `created` timestamp in server timezone ([404](https://github.com/jazzband/django-auditlog/pull/404))
- fix: Handle port in `remote_addr` ([417](https://github.com/jazzband/django-auditlog/pull/417))
- fix: Handle the error with AttributeError: 'OneToOneRel' error occur during a `PolymorphicModel` has relation with other models ([429](https://github.com/jazzband/django-auditlog/pull/429))
- fix: Support search by custom USERNAME_FIELD ([432](https://github.com/jazzband/django-auditlog/pull/432))

2.1.1

Improvements

- feat: Display the diff for deleted objects in the admin ([396](https://github.com/jazzband/django-auditlog/pull/396))
- Django: Confirm Django 4.1 support ([406](https://github.com/jazzband/django-auditlog/pull/406))

Fixes

- fix: Pin `python-dateutil` to 2.7.0 or higher for compatibility with Python 3.10 ([401](https://github.com/jazzband/django-auditlog/pull/401))

2.1.0

Improvements

- feat: Add `--before-date` option to `auditlogflush` to support retention windows ([365](https://github.com/jazzband/django-auditlog/pull/365))
- feat: Add db_index to the `LogEntry.timestamp` column ([364](https://github.com/jazzband/django-auditlog/pull/364))
- feat: Add register model from settings ([368](https://github.com/jazzband/django-auditlog/pull/368))
- Context manager set_actor() for use in Celery tasks ([262](https://github.com/jazzband/django-auditlog/pull/262))
- Tracking of changes in many-to-many fields ([309](https://github.com/jazzband/django-auditlog/pull/309))

Fixes

- Fix inconsistent changes with JSONField ([355](https://github.com/jazzband/django-auditlog/pull/355))
- Disable `add` button in admin ui ([378](https://github.com/jazzband/django-auditlog/pull/378))
- Fix n+1 query problem([381](https://github.com/jazzband/django-auditlog/pull/381))

2.0.0

Improvements

- feat: enable use of replica database (delegating the choice to `DATABASES_ROUTER`) ([359](https://github.com/jazzband/django-auditlog/pull/359))
- Add `mask_fields` argument in `register` to mask sensitive information when logging ([310](https://github.com/jazzband/django-auditlog/pull/310))
- Django: Drop 2.2 support. `django_jsonfield_backport` is not required anymore ([370](https://github.com/jazzband/django-auditlog/pull/370))
- Remove `default_app_config` configuration ([372](https://github.com/jazzband/django-auditlog/pull/372))

Important notes

- LogEntry no longer save to same database instance is using

1.0.0

Final

Improvements

- build: add classifiers for Python and Django
- build: replace django-jsonfield with django-jsonfield-backport ([339](https://github.com/jazzband/django-auditlog/pull/339))
- ci: replace Travis with Github Actions
- docs: follow Jazzband guidelines (badge, how to contribute, code of conduct) ([269](https://github.com/jazzband/django-auditlog/pull/269))
- docs: add a changelog
- docs: remove note about maintenance
- docs: update the release strategy
- docs: use the latest django LTS (3.2) to build docs
- feat: add a db index to `LogEntry`'s `action` field ([236](https://github.com/jazzband/django-auditlog/pull/236))
- feat: add the content type to `resource` field
- feat: add the `actor` username to search fields in admin
- refactor: lint the code with Black and isort
- tests: init pre-commit config
- Python: add 3.9 and 3.10 support, drop 3.5 and 3.6 support
- Django: add 3.2 (LTS) and 4.0 support, drop 3.0 and 3.1 support

Fixes

- docs: replace `MIDDLEWARE_CLASSES` with `MIDDLEWARE`
- Remove old django (< 1.9) related codes
- Replace deprecated `smart_text()` with `smart_str()`
- Replace `ugettext` with `gettext` for Django 4
- Support Django's save method `update_fields` kwarg ([336](https://github.com/jazzband/django-auditlog/pull/336))
- Fix invalid escape sequence on Python 3.7

Alpha 1 (1.0a1, 2020-09-07)

Improvements

- Refactor the `auditlogflush` management command
- Clean up project structure
- Python: add 3.8 support, drop 2.7 and 3.4 support
- Django: add 3.0 and 3.1 support, drop 1.11, 2.0 and 2.1 support

Fixes

- Fix field choices diff
- Allow higher versions of python-dateutil than 2.6.0

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.