From dc15fa3eef4fe85fb91024b02e92c5fb614ce1e7 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Mon, 3 Oct 2016 16:36:39 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX=20para=20eliminar=20duplica=C3=A7=C3=A3?= =?UTF-8?q?o=20de=20mat=C3=A9rias=20na=20lista?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/comissoes/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sapl/comissoes/views.py b/sapl/comissoes/views.py index edead6e02..277714460 100644 --- a/sapl/comissoes/views.py +++ b/sapl/comissoes/views.py @@ -73,8 +73,10 @@ class MateriasTramitacaoListView(ListView): for materia in materias: comissao = materia.tramitacao_set.last( ).unidade_tramitacao_destino.comissao - if comissao: - if comissao.pk == int(self.kwargs['pk']): + if (comissao and + materia not in lista and + comissao.pk == int(self.kwargs['pk']) + ): lista.append(materia) return lista