From bf7c477641ca6898fb797d62799bfda85aa33e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Fr=C3=A1?= Date: Tue, 23 May 2017 16:18:22 -0300 Subject: [PATCH] fix conserta acessorio em lote (#1119) --- sapl/materia/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index f0c95f330..180a69690 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1619,7 +1619,7 @@ class DocumentoAcessorioEmLoteView(PermissionRequiredMixin, FilterView): doc.arquivo = request.FILES['arquivo'] doc.nome = request.POST['nome'] doc.data = datetime.strptime(request.POST['data'], "%d/%m/%Y") - doc.autor_id = request.POST['autor'] + doc.autor = request.POST['autor'] doc.ementa = request.POST['ementa'] doc.save() msg = _('Documento(s) criado(s).')