From 2b1003aa870cb70e491637c6d2ff25c4b26008ef Mon Sep 17 00:00:00 2001 From: Matheus Veleci Date: Thu, 1 Jun 2017 15:55:34 -0300 Subject: [PATCH] =?UTF-8?q?Ajusta=20fun=C3=A7=C3=A3o=20do=5Fenvia=5Femail?= =?UTF-8?q?=5Ftramitacao()=20na=20CreateView=20da=20TramitacaoCrud?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index e5583b355..1a2605308 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -915,8 +915,11 @@ class TramitacaoCrud(MasterDetailCrud): unidade_destino = UnidadeTramitacao.objects.get( id=request.POST['unidade_tramitacao_destino'] ) + texto = request.POST['texto'] + data_tramitacao = request.POST['data_tramitacao'] do_envia_email_tramitacao( - request, materia, status, unidade_destino) + request, materia, status, + unidade_destino, texto, data_tramitacao) return super(CreateView, self).post(request, *args, **kwargs) class UpdateView(MasterDetailCrud.UpdateView):