From c76740372a2e986b5d57e352de585910d8a4c31c Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Wed, 28 Oct 2020 10:07:20 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20inc=20no=20log=20o=20hist=20de=20aut?= =?UTF-8?q?ent=20de=20usu=C3=A1rios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/base/receivers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/base/receivers.py b/sapl/base/receivers.py index 41490c5c7..e812a3f5b 100644 --- a/sapl/base/receivers.py +++ b/sapl/base/receivers.py @@ -49,9 +49,9 @@ def status_tramitacao_materia(sender, instance, **kwargs): def audit_log_function(sender, **kwargs): - try: - if not sender._meta.app_config.name.startswith('sapl'): + if not (sender._meta.app_config.name.startswith('sapl') or + sender._meta.label == settings.AUTH_USER_MODEL): return except: # não é necessário usar logger, aqui é usada apenas para