Settings
- class alliance_platform.audit.settings.AlliancePlatformAuditSettingsType[source]
Settings for the Audit package of the Alliance Platform
These can be set in the Django settings file under the
ALLIANCE_PLATFORMkey:ALLIANCE_PLATFORM = { "AUDIT": { # settings go here } }
- LIST_PERM_ACTION: str | None[source]
The name of the action used to evaluate permissions for auditing a model. Defaults to ‘audit’. The action name is passed through
resolve_perm_name()to generate the permission.
- CAN_AUDIT_PERM_NAME: str | None[source]
The name of the permission used to evaluate whether auditing of any type can be performed. If a user has audit permissions for a model, but not the permission specified here, they will be unable to audit models that they have permissions for.
- USERNAME_FORMAT: Expression | F | None[source]
The SQL function used to generate the display name for users in audit logs. Defaults to
Concat("first_name", Value(" "), "last_name"). If your user model does not includefirst_nameandlast_namefields, you will need to change this setting.