From 059b0ccde9597e5b50fe2243d006adcdf6260aa2 Mon Sep 17 00:00:00 2001 From: Ulysses Lara Date: Tue, 15 Oct 2019 14:57:13 -0300 Subject: [PATCH] BugFix Tela de impressos indice de materias Fix #3017 (#3018) --- sapl/materia/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 9c8ff7f6c..bf5a36c81 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -2651,9 +2651,9 @@ class MateriaPesquisaSimplesView(PermissionRequiredMixin, FormView): kwargs.update({'tipo': form.cleaned_data['tipo_materia']}) if form.cleaned_data.get('data_inicial'): - kwargs.update({'data__gte': form.cleaned_data['data_inicial'], - 'data__lte': form.cleaned_data['data_final']}) - + kwargs.update({'data_apresentacao__gte': form.cleaned_data['data_inicial'], + 'data_apresentacao__lte': form.cleaned_data['data_final']}) + materias = MateriaLegislativa.objects.filter( **kwargs).order_by('-numero', 'ano')