Browse Source

HOT-FIX: Corrige busca em status de tramitação

pull/3284/head
Vinícius Cantuária 4 years ago
committed by GitHub
parent
commit
80df1e0f33
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      sapl/materia/forms.py

4
sapl/materia/forms.py

@ -2789,7 +2789,7 @@ class FichaSelecionaForm(forms.Form):
class StatusTramitacaoFilterSet(django_filters.FilterSet): 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: class Meta:
model = StatusTramitacao model = StatusTramitacao
@ -2799,7 +2799,7 @@ class StatusTramitacaoFilterSet(django_filters.FilterSet):
return queryset.filter(Q(sigla__icontains=value) | Q(descricao__icontains=value)) return queryset.filter(Q(sigla__icontains=value) | Q(descricao__icontains=value))
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(StatusTramitacaoFilterSet, self).__init__(*args, **kwargs) super().__init__(*args, **kwargs)
row0 = to_row([("descricao", 12)]) row0 = to_row([("descricao", 12)])

Loading…
Cancel
Save