From df647a4872d295d19c205a25e22d8dda28e8bad8 Mon Sep 17 00:00:00 2001 From: Edward <9326037+edwardoliveira@users.noreply.github.com> Date: Thu, 11 Feb 2021 13:48:32 -0300 Subject: [PATCH] Fixes #3344 (#3345) Co-authored-by: eribeiro --- sapl/materia/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sapl/materia/forms.py b/sapl/materia/forms.py index 06aed83c2..66f8e3228 100644 --- a/sapl/materia/forms.py +++ b/sapl/materia/forms.py @@ -1984,6 +1984,10 @@ class ProposicaoForm(FileFieldCheckMixin, forms.ModelForm): cd = self.cleaned_data + texto_original = cd.get('texto_original', False) + if texto_original: + validar_arquivo(texto_original, 'Texto Original') + tm, am, nm = (cd.get('tipo_materia', ''), cd.get('ano_materia', ''), cd.get('numero_materia', ''))