From 80df1e0f3300ca68846713a72a3d2ca5fe33f3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Wed, 25 Nov 2020 13:16:12 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20Corrige=20busca=20em=20status=20de?= =?UTF-8?q?=20tramita=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/materia/forms.py b/sapl/materia/forms.py index d3ac74afb..f0602db6b 100644 --- a/sapl/materia/forms.py +++ b/sapl/materia/forms.py @@ -2789,7 +2789,7 @@ class FichaSelecionaForm(forms.Form): class StatusTramitacaoFilterSet(django_filters.FilterSet): - descricao = django_filters.CharFilter(label=_("Descrição do Status"), lookup_expr="icontains") + descricao = django_filters.CharFilter(label=_("Descrição do Status"), method='multifield_filter') class Meta: model = StatusTramitacao @@ -2799,7 +2799,7 @@ class StatusTramitacaoFilterSet(django_filters.FilterSet): return queryset.filter(Q(sigla__icontains=value) | Q(descricao__icontains=value)) def __init__(self, *args, **kwargs): - super(StatusTramitacaoFilterSet, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) row0 = to_row([("descricao", 12)])