From 08e9767d98bb8148067e5feac869aa6b98f772ea Mon Sep 17 00:00:00 2001 From: VictorFabreF Date: Tue, 6 Nov 2018 13:33:25 -0200 Subject: [PATCH] [WIP] --- sapl/sessao/forms.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sapl/sessao/forms.py b/sapl/sessao/forms.py index ed9e414c7..2587474b8 100644 --- a/sapl/sessao/forms.py +++ b/sapl/sessao/forms.py @@ -203,7 +203,20 @@ class RetiradaPautaForm(ModelForm): class Meta: model = RetiradaPauta - exclude = ['ordem', 'expediente', 'materia'] + exclude = ['ordem', + 'expediente', + 'materia'] + + def __init__(self, *args, **kwargs): + + row1 = to_row[('parlamentar', 6), + ('tipo_de_retirada', 6)] + row2 = to_row[('observacao',12)] + + self.helper = FormHelper() + self.helper.layout = SaplFormLayout( + Fieldset(_('Retirada de Pauta'), + row1, row2)) class BancadaForm(ModelForm):