nside_wefa.audit

Public surface of the nside_wefa.audit app.

Consumers import everything they need from this top-level module so they never have to know about the underlying auditlog.* API:

from nside_wefa import audit

audit.register(Order, include_fields=[“status”]) # Path A @audit.audited(include_fields=[“status”]) # Path B class Order(models.Model): …

audit.log(“order.cancel”, actor=request.user, target=order) with audit.set_actor(user):

The convenience constants and exceptions are also re-exported here.

Modules

admin

Read-only Django admin for audit LogEntry rows.

api

Public Python API for emitting audit events.

apps

Django app configuration for the nside_wefa.audit app.

builtin

Built-in audit event sources for the rest of the WeFa toolkit.

checks

System checks for the nside_wefa.audit app.

immutability

Immutability guard for auditlog.models.LogEntry.

management

migrations

models

Tamper-evident LogEntry subclass.

registration

Registration helpers for the audit app.

serializers

Serializers for audit LogEntry rows.

settings_translation

Translate NSIDE_WEFA.AUDIT keys into the AUDITLOG_* keys understood by django-auditlog.

tests

urls

Audit URL configuration.

views

View exports for the audit app.