nside_wefa.audit.checks

System checks for the nside_wefa.audit app.

Validates:

  • Application load order: nside_wefa.commonauditlognside_wefa.audit.

  • Presence and shape of the NSIDE_WEFA.AUDIT settings section. All keys are optional; default values keep the app installable with zero config.

  • Each model label in MODELS and EXCLUDE_MODELS resolves via the Django app registry. (Auditlog itself silently drops unresolvable entries — failing the boot is the right WeFa default.)

  • Each entry in BUILTIN_SOURCES is a known WeFa source. Missing source apps are tolerated (the source is silently skipped at install time) but an unknown source name is an error.

Functions

audit_settings_check(app_configs, **kwargs)

Validate the NSIDE_WEFA.AUDIT settings section.

wefa_apps_dependencies_check(app_configs, ...)

Validate INSTALLED_APPS order.