Browse Source

Fixes #1877

pull/1894/head
Edward Ribeiro 7 years ago
parent
commit
509ea49e58
  1. 4
      sapl/sessao/forms.py

4
sapl/sessao/forms.py

@ -345,6 +345,10 @@ class SessaoPlenariaFilterSet(django_filters.FilterSet):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(SessaoPlenariaFilterSet, self).__init__(*args, **kwargs) super(SessaoPlenariaFilterSet, self).__init__(*args, **kwargs)
# pré-popula o campo do formulário com o ano corrente
self.form.fields['data_inicio__year'].initial = timezone.now().year
row1 = to_row( row1 = to_row(
[('data_inicio__year', 3), [('data_inicio__year', 3),
('data_inicio__month', 3), ('data_inicio__month', 3),

Loading…
Cancel
Save