From 90a28d14eb793a9f45af51ec64e845527d25b2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Rodrigues?= Date: Wed, 20 Nov 2019 17:06:35 -0300 Subject: [PATCH] Fix #3037 --- sapl/base/forms.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sapl/base/forms.py b/sapl/base/forms.py index d0aa5ca11..3be1d29a7 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -1001,16 +1001,18 @@ class RelatorioPresencaSessaoFilterSet(django_filters.FilterSet): self.form.initial['exibir_ordem_dia'] = True self.filters['data_inicio'].label = 'PerĂ­odo (Inicial - Final)' + + self.form.fields['legislatura'].required = True tipo_sessao_ordinaria = self.filters['tipo'].queryset.filter(nome='OrdinĂ¡ria') if tipo_sessao_ordinaria: self.form.initial['tipo'] = tipo_sessao_ordinaria.first() - row1 = to_row([('data_inicio', 12)]) - row2 = to_row([('legislatura', 4), + row1 = to_row([('legislatura', 4), ('sessao_legislativa', 4), ('tipo', 4)]) - row3 = to_row([('exibir_ordem_dia', 12)]) + row2 = to_row([('exibir_ordem_dia', 12)]) + row3 = to_row([('data_inicio', 12)]) buttons = FormActions( *[