From 517444bee4ff19292041ba3445ae90ef25043cbb Mon Sep 17 00:00:00 2001 From: Victor Fabre Date: Fri, 15 Mar 2019 14:11:30 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20permite=20altera=C3=A7=C3=A3o=20nume?= =?UTF-8?q?ro=20protocolo=20(#2616)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/materia/forms.py b/sapl/materia/forms.py index 4e2f2fba3..33f4d3b26 100644 --- a/sapl/materia/forms.py +++ b/sapl/materia/forms.py @@ -204,7 +204,7 @@ class MateriaLegislativaForm(FileFieldCheckMixin, ModelForm): widget=forms.HiddenInput()) self.fields['autor'] = forms.CharField(required=False, widget=forms.HiddenInput()) - if kwargs['instance'].numero_protocolo: + if kwargs['instance'].numero_protocolo and Protocolo.objects.filter(numero=kwargs['instance'].numero_protocolo, ano=kwargs['instance'].ano).exists(): self.fields['numero_protocolo'].widget.attrs['readonly'] = True def clean(self):