Browse Source
HOT-FIX: Corrige busca em status de tramitação
pull/3284/head
Vinícius Cantuária
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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)]) |
|
|
|
|
|
|
|
|