Browse Source

Fix #3037

pull/3039/head
João Rodrigues 6 years ago
parent
commit
90a28d14eb
  1. 8
      sapl/base/forms.py

8
sapl/base/forms.py

@ -1002,15 +1002,17 @@ class RelatorioPresencaSessaoFilterSet(django_filters.FilterSet):
self.filters['data_inicio'].label = 'Período (Inicial - Final)' 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') tipo_sessao_ordinaria = self.filters['tipo'].queryset.filter(nome='Ordinária')
if tipo_sessao_ordinaria: if tipo_sessao_ordinaria:
self.form.initial['tipo'] = tipo_sessao_ordinaria.first() self.form.initial['tipo'] = tipo_sessao_ordinaria.first()
row1 = to_row([('data_inicio', 12)]) row1 = to_row([('legislatura', 4),
row2 = to_row([('legislatura', 4),
('sessao_legislativa', 4), ('sessao_legislativa', 4),
('tipo', 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( buttons = FormActions(
*[ *[

Loading…
Cancel
Save