From 3d9698e1f4de2baa9186e5f894bf239a217197bc Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Mon, 9 May 2016 11:19:58 -0300 Subject: [PATCH] =?UTF-8?q?Esconde=20campo=20n=C3=A3o=20usado=20de=20autor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- materia/forms.py | 2 ++ 1 file changed, 2 insertions(+) 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: