From 9575d90c46678aca3ab211f7741a3fc17bc5d76a Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Thu, 5 May 2016 12:06:35 -0300 Subject: [PATCH] Monta layout para autor --- materia/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/materia/forms.py b/materia/forms.py index 81dc4a778..f2997292e 100644 --- a/materia/forms.py +++ b/materia/forms.py @@ -131,6 +131,10 @@ class DocumentoAcessorioForm(ModelForm): if autor_field: return str(Autor.objects.get(id=autor_field)) + def __init__(self, *args, **kwargs): + super(DocumentoAcessorioForm, self).__init__(*args, **kwargs) + self.helper = FormHelper() + class RelatoriaForm(ModelForm):