Browse Source

Fix #2492 (#2576)

pull/2580/head
Victor Fabre 6 years ago
committed by Edward
parent
commit
df2b8eb2ed
  1. 5
      sapl/materia/forms.py

5
sapl/materia/forms.py

@ -1700,9 +1700,6 @@ class ConfirmarProposicaoForm(ProposicaoForm):
attrs={'readonly': 'readonly', 'rows': 4}), attrs={'readonly': 'readonly', 'rows': 4}),
'data_envio': widgets.DateTimeInput( 'data_envio': widgets.DateTimeInput(
attrs={'readonly': 'readonly'}), attrs={'readonly': 'readonly'}),
'numero_materia_futuro': widgets.NumberInput(
attrs={'readonly': 'readonly', 'rows': 1}),
} }
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
@ -1741,8 +1738,6 @@ class ConfirmarProposicaoForm(ProposicaoForm):
# esta chamada isola o __init__ de ProposicaoForm # esta chamada isola o __init__ de ProposicaoForm
super(ProposicaoForm, self).__init__(*args, **kwargs) super(ProposicaoForm, self).__init__(*args, **kwargs)
self.fields['numero_materia_futuro'].widget.attrs['readonly'] = True
fields = [ fields = [
Fieldset( Fieldset(
_('Dados Básicos'), _('Dados Básicos'),

Loading…
Cancel
Save