From f425bc3ac4aee02ea1cb05a2b22b4b1415ff8475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Rodrigues?= Date: Fri, 11 Oct 2019 11:11:04 -0300 Subject: [PATCH] Fix #3012 (#3013) --- sapl/norma/forms.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sapl/norma/forms.py b/sapl/norma/forms.py index 803cd2751..6631d50dc 100644 --- a/sapl/norma/forms.py +++ b/sapl/norma/forms.py @@ -266,6 +266,11 @@ class AutoriaNormaForm(ModelForm): class AnexoNormaJuridicaForm(FileFieldCheckMixin, ModelForm): + + logger = logging.getLogger(__name__) + + anexo_arquivo = forms.FileField(required=True) + class Meta: model = AnexoNormaJuridica fields = ['norma', 'anexo_arquivo', 'assunto_anexo'] @@ -273,8 +278,6 @@ class AnexoNormaJuridicaForm(FileFieldCheckMixin, ModelForm): 'norma': forms.HiddenInput(), } - logger = logging.getLogger(__name__) - def clean(self): cleaned_data = super(AnexoNormaJuridicaForm, self).clean()