From e08b43f4b3b444c5186d0030d72b4366ea000f1a Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 4 May 2016 18:47:47 -0300 Subject: [PATCH] =?UTF-8?q?HOT=20FIX:=20filia=C3=A7=C3=A3o=20vem=20em=20or?= =?UTF-8?q?dem=20decrescente:=20first()=20ao=20inv=C3=A9s=20de=20last()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parlamentares/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parlamentares/views.py b/parlamentares/views.py index 432014951..e7033745b 100644 --- a/parlamentares/views.py +++ b/parlamentares/views.py @@ -79,7 +79,7 @@ class ParlamentarCrud(Crud): def get_rows(self, object_list): parlamentares = [] for m in object_list: - ultima_filiacao = m.parlamentar.filiacao_set.last() + ultima_filiacao = m.parlamentar.filiacao_set.first() if ultima_filiacao: partido = ultima_filiacao.partido.sigla else: