Browse Source

fix #2453 (#2457)

pull/2473/head
Cesar Augusto de Carvalho 6 years ago
committed by Edward
parent
commit
ed50c00193
  1. 3
      sapl/materia/forms.py

3
sapl/materia/forms.py

@ -202,7 +202,8 @@ class MateriaLegislativaForm(ModelForm):
widget=forms.HiddenInput()) widget=forms.HiddenInput())
self.fields['autor'] = forms.CharField(required=False, self.fields['autor'] = forms.CharField(required=False,
widget=forms.HiddenInput()) widget=forms.HiddenInput())
self.fields['numero_protocolo'].widget.attrs['readonly'] = True if kwargs['instance'].numero_protocolo:
self.fields['numero_protocolo'].widget.attrs['readonly'] = True
def clean(self): def clean(self):
super(MateriaLegislativaForm, self).clean() super(MateriaLegislativaForm, self).clean()

Loading…
Cancel
Save