nside_wefa.audit.registration¶
Registration helpers for the audit app.
Three opt-in paths, all of which delegate to auditlog.registry.auditlog.register():
Path A — module-level
register()at the bottom ofmodels.py.Path B —
audited()decorator over the model class.Path C —
AuditAppConfigMixindeclaringaudited_modelson the consuming app’sAppConfig. The mixin’sready()walks the dict and callsregister()once per entry, after our app has finished its ownready()so that translated settings are in effect.
The settings-only Path D (NSIDE_WEFA.AUDIT.MODELS) is wired by the
settings translation layer in nside_wefa.audit.settings_translation
and django-auditlog’s register_from_settings.
Functions
|
Class decorator equivalent to calling |
|
Register a model for auditing. |
Classes
|
Mixin for consumer |