From e7bbaa5647fb5f4dbbe5505395229a80231ad71f Mon Sep 17 00:00:00 2001 From: errrken <12519504+errrken@users.noreply.github.com> Date: Thu, 23 Nov 2023 17:52:45 +0100 Subject: [PATCH] Update signals.py --- auditlog/signals.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auditlog/signals.py b/auditlog/signals.py index 0f992d1..f6d0389 100644 --- a/auditlog/signals.py +++ b/auditlog/signals.py @@ -20,7 +20,9 @@ Keyword arguments sent with this signal: audit log entry. Type: :class:`auditlog.models.LogEntry.Action` The receivers' return values are sent to any :func:`post_log` -signal receivers. +signal receivers, with one exception: if any receiver returns False, +no logging will be made. This can be useful if logging should be +conditionally enabled / disabled """ post_log = django.dispatch.Signal()