From 4e91f84b2cacc68787b33a8095af61a636da7bb8 Mon Sep 17 00:00:00 2001 From: Victor Fabre Date: Mon, 3 Dec 2018 11:37:13 -0200 Subject: [PATCH] fix #2407 (#2408) --- sapl/parlamentares/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index 9e6fc1d17..f9a37b373 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -498,7 +498,7 @@ class ParlamentarCrud(Crud): if legislatura_id >= 0: return queryset.filter( mandato__legislatura_id=legislatura_id).annotate( - mandato_titular=F('mandato__titular')) + mandato_titular=F('mandato__titular')).distinct() else: try: self.logger.debug("user=" + username + ". Tentando obter o mais recente registro do objeto Legislatura.")