From d40fc0e15e23e5319cb74ca42bc381fb0e869b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Fr=C3=A1?= Date: Tue, 23 May 2017 13:58:32 -0300 Subject: [PATCH] campo texto para autor documentos acessorios em lote (#1117) --- sapl/materia/views.py | 2 +- sapl/templates/materia/em_lote/acessorio.html | 17 ++--------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index c3ad9f9e4..381e8042c 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1619,7 +1619,7 @@ class DocumentoAcessorioEmLoteView(PermissionRequiredMixin, FilterView): arquivo=request.POST['arquivo'], nome=request.POST['nome'], data=datetime.strptime(request.POST['data'], "%d/%m/%Y"), - autor=Autor.objects.get(id=request.POST['autor']), + autor=request.POST['autor'], ementa=request.POST['ementa'] ) msg = _('Documento(s) criado(s).') diff --git a/sapl/templates/materia/em_lote/acessorio.html b/sapl/templates/materia/em_lote/acessorio.html index 5035d8956..1fe8086cc 100644 --- a/sapl/templates/materia/em_lote/acessorio.html +++ b/sapl/templates/materia/em_lote/acessorio.html @@ -40,22 +40,9 @@
- +
- - - -
-
-
-
-
-
- +