From 2a3fc32c8c6743705b861fdf70eb9bc50cd43545 Mon Sep 17 00:00:00 2001 From: DTILegBG Date: Tue, 23 May 2017 13:04:55 -0300 Subject: [PATCH] campo texto para autor documentos acessorios em lote --- 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 @@
- +
- - - -
-
-
-
-
-
- +