From 02ff5ef57f59484dd54568b30941e30ecdf86c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Fri, 3 Feb 2023 16:08:19 -0300 Subject: [PATCH] Corrige filtro de convenios vigentes --- sigi/apps/convenios/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/convenios/admin.py b/sigi/apps/convenios/admin.py index 07d8fe8..f0ea003 100644 --- a/sigi/apps/convenios/admin.py +++ b/sigi/apps/convenios/admin.py @@ -93,7 +93,7 @@ class ConvenioVigenteFilter(admin.filters.SimpleListFilter): return queryset.filter( Q(data_termino_vigencia__gte=timezone.localdate()) | Q(data_termino_vigencia=None) - ) + ).exclude(data_retorno_assinatura=None) elif self.value() == "vencidos": return queryset.exclude(data_termino_vigencia=None).filter( data_termino_vigencia__lt=timezone.localdate()