diff --git a/materia/forms.py b/materia/forms.py index e8bc7389d..186c6ba09 100644 --- a/materia/forms.py +++ b/materia/forms.py @@ -121,6 +121,8 @@ class DocumentoAcessorioForm(ModelForm): fields = ['tipo', 'nome', 'data', 'autor', 'ementa', 'arquivo'] widgets = {'autor': forms.HiddenInput()} + widgets = {'autor': forms.HiddenInput()} + def clean_autor(self): autor_field = self.cleaned_data['autor'] try: