From df2b8eb2ed7f2435ef5c882f9ec15cc171e23e23 Mon Sep 17 00:00:00 2001 From: Victor Fabre Date: Thu, 28 Feb 2019 15:36:47 -0300 Subject: [PATCH] Fix #2492 (#2576) --- sapl/materia/forms.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sapl/materia/forms.py b/sapl/materia/forms.py index 3fc32ce3e..11e94f742 100644 --- a/sapl/materia/forms.py +++ b/sapl/materia/forms.py @@ -1700,9 +1700,6 @@ class ConfirmarProposicaoForm(ProposicaoForm): attrs={'readonly': 'readonly', 'rows': 4}), 'data_envio': widgets.DateTimeInput( attrs={'readonly': 'readonly'}), - 'numero_materia_futuro': widgets.NumberInput( - attrs={'readonly': 'readonly', 'rows': 1}), - } def __init__(self, *args, **kwargs): @@ -1739,9 +1736,7 @@ class ConfirmarProposicaoForm(ProposicaoForm): self._meta.fields.remove('regime_tramitacao') # esta chamada isola o __init__ de ProposicaoForm - super(ProposicaoForm, self).__init__(*args, **kwargs) - - self.fields['numero_materia_futuro'].widget.attrs['readonly'] = True + super(ProposicaoForm, self).__init__(*args, **kwargs) fields = [ Fieldset(