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