From c08e0a69d388ece393c26b41e0d64aec41485005 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Sat, 14 Sep 2019 01:44:02 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20corrige=20signal=20de=20ajuste=20de?= =?UTF-8?q?=20indicador=20de=20tramita=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/base/receivers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sapl/base/receivers.py b/sapl/base/receivers.py index b2176be14..1e402ffb0 100644 --- a/sapl/base/receivers.py +++ b/sapl/base/receivers.py @@ -1,6 +1,5 @@ from django.db.models.signals import post_delete, post_save from django.dispatch import receiver - from sapl.materia.models import Tramitacao from sapl.protocoloadm.models import TramitacaoAdministrativo from sapl.base.signals import tramitacao_signal @@ -30,7 +29,7 @@ def handle_tramitacao_signal(sender, **kwargs): @receiver(post_delete) def status_tramitacao_materia(sender, instance, **kwargs): - if isinstance(sender, TramitacaoAdministrativo): + if isinstance(sender, Tramitacao): if instance.status.indicador == 'F': materia = instance.materia materia.em_tramitacao = True