From 909b4bfedb5f72e7fdcd34a756e39e4028404bdf Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Mon, 3 Jul 2017 12:47:52 -0300 Subject: [PATCH] Conserta bug em materia de parlamentares --- sapl/materia/views.py | 2 +- sapl/templates/parlamentares/materias.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 23792b202..6b1ab18c9 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1378,7 +1378,7 @@ class MateriaLegislativaPesquisaView(FilterView): unidade_destino = self.request.GET.get( 'tramitacao__unidade_tramitacao_destino') - qs = self.get_queryset() + qs = self.get_queryset().distinct() if status_tramitacao and unidade_destino: lista = filtra_tramitacao_destino_and_status(status_tramitacao, diff --git a/sapl/templates/parlamentares/materias.html b/sapl/templates/parlamentares/materias.html index eed86fdd8..c5e1448c8 100644 --- a/sapl/templates/parlamentares/materias.html +++ b/sapl/templates/parlamentares/materias.html @@ -20,7 +20,7 @@ {{ materias.1 }}  - + {{ materias.2}} @@ -41,7 +41,7 @@ {{ materias.1 }}  - + {{ materias.2}}