From 13624ab212c1f03fde2f1362bef47bf167556397 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Fri, 15 Dec 2017 14:55:21 -0200 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20status=20de=20em=5Ftramitacao=20na?= =?UTF-8?q?=20Tramita=C3=A7=C3=A3o=20em=20Lote?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 50f3a525d..f21a8d64d 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1712,7 +1712,9 @@ class PrimeiraTramitacaoEmLoteView(PermissionRequiredMixin, FilterView): ) t.save() - if request.POST['turno'] == 'F': + status = StatusTramitacao.objects.get(id=request.POST['status']) + + if status.indicador == 'F': for materia in MateriaLegislativa.objects.filter(id__in=marcadas): materia.em_tramitacao = False materia.save()