From 9f29a46df487e64e0fb68ba528108fc4cd6b7bf8 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Sat, 14 Sep 2019 02:16:56 -0300 Subject: [PATCH] HOT-FIX: corrige teste de classes em post_delete --- 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 1e402ffb0..f5f19f1f3 100644 --- a/sapl/base/receivers.py +++ b/sapl/base/receivers.py @@ -29,12 +29,12 @@ def handle_tramitacao_signal(sender, **kwargs): @receiver(post_delete) def status_tramitacao_materia(sender, instance, **kwargs): - if isinstance(sender, Tramitacao): + if sender == Tramitacao: if instance.status.indicador == 'F': materia = instance.materia materia.em_tramitacao = True materia.save() - elif isinstance(sender, TramitacaoAdministrativo): + elif sender == TramitacaoAdministrativo: if instance.status.indicador == 'F': documento = instance.documento documento.tramitacao = True