From a8e27a7defcd8455c010ac62048c2c1ef7065cd8 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Tue, 6 Jun 2017 13:42:38 -0300 Subject: [PATCH] Corrige bug envio de form vazio (auxilio por Eduardo Calil). --- sapl/materia/views.py | 5 ++++- sapl/parlamentares/views.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 1a2605308..85afc40c0 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1787,7 +1787,10 @@ class TramitacaoEmLoteView(PrimeiraTramitacaoEmLoteView): qr = self.request.GET.copy() if ('tramitacao__status' in qr and - 'tramitacao__unidade_tramitacao_destino' in qr): + 'tramitacao__unidade_tramitacao_destino' in qr and + qr['tramitacao__status'] and + qr['tramitacao__unidade_tramitacao_destino'] + ): lista = filtra_tramitacao_destino_and_status( qr['tramitacao__status'], qr['tramitacao__unidade_tramitacao_destino']) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index 0ac04b7af..adbe6117e 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -349,7 +349,6 @@ class ParlamentarCrud(Crud): # preenche coluna foto, se vazia if not row[0][0]: - # img = '  ' img = "
" \ % static('img/avatar.png')