From 162bc6e0bf69740549cad065749c36c6a7136fc6 Mon Sep 17 00:00:00 2001 From: joaohortsenado <100957576+joaohortsenado@users.noreply.github.com> Date: Sat, 30 Dec 2023 23:48:26 -0300 Subject: [PATCH] fix: corrige bug na pesquisa de impressos etiquetas (#3695) Co-authored-by: joao --- sapl/materia/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index e656751dc..5492ddfb6 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -2660,9 +2660,9 @@ class EtiquetaPesquisaView(PermissionRequiredMixin, FormView): if form.cleaned_data['processo_inicial']: materias = materias.filter( - numeracao__numero_materia__gte=form.cleaned_data[ + numero__gte=form.cleaned_data[ 'processo_inicial'], - numeracao__numero_materia__lte=form.cleaned_data[ + numero__lte=form.cleaned_data[ 'processo_final']) context['quantidade'] = len(materias)