Skip to content

Releases: wkang0/django-audit-snap

0.9.1

Choose a tag to compare

@wkang0 wkang0 released this 13 Oct 02:56

What's changed

Fixes

  • Use raw strings for the South introspection rule patterns in audit_log/models/fields.py. This removes invalid escape sequence warnings (\.) on modern Python. The patterns themselves are unchanged.

Docs and tooling

  • Added CONTRIBUTING.md with setup, test, and PR guidelines
  • Fixed the single-module test commands in CONTRIBUTING.md and CLAUDE.md. They now use fully qualified module paths (audit_log.tests.audit_log_tests.test_logging), because the old paths raised a RuntimeError
  • Pinned GitHub Actions versions in the PyPI publish workflow
  • Updated .gitignore to exclude IDE files

v0.9.0 — Modern Django compatibility, fork rebranded as django-audit-snap

Choose a tag to compare

@wkang0 wkang0 released this 27 Jul 23:27

This release modernizes the original django-audit-log package (by Vasil Vangelovski / Atomidata)
for current Django and Python versions, and rebrands the fork as django-audit-snap.

What's New

Django compatibility

  • Django 4.0+: replaced ugettext_lazy with gettext_lazy
  • Django 2.0+: is_authenticated updated from function call to property
  • MiddlewareMixin added for modern middleware compatibility
  • curry replaced with functools.partial / partialmethod
  • field.rel replaced with field.remote_field

Audit log integrity

  • FK fields now use db_constraint=False so deleting a referenced object does not
    cascade-delete audit log entries
  • Deleting a user sets action_user=NULL (SET_NULL) rather than removing log entries

Code quality

  • OneToOneField converted to ForeignKey with unique=False for consistent behavior
  • unicode_literals removed; string formatting standardized
  • General readability improvements

Python support: 3.8–3.13
Django support: 3.2+

Upgrading

Import paths are unchanged — from audit_log.models import ... continues to work as before.
Only the PyPI package name changes from django-audit-log to django-audit-snap.