Browse Source

fix #2453 (#2457)

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

1
sapl/materia/forms.py

@ -202,6 +202,7 @@ 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())
if kwargs['instance'].numero_protocolo:
self.fields['numero_protocolo'].widget.attrs['readonly'] = True self.fields['numero_protocolo'].widget.attrs['readonly'] = True
def clean(self): def clean(self):

Loading…
Cancel
Save