From 77a55a6932b520a0f2ea4452f170f59d967e8f55 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Mon, 10 Oct 2016 13:06:58 -0300 Subject: [PATCH] Troca url de parlamentar list --- sapl/parlamentares/views.py | 2 +- sapl/templates/parlamentares/parlamentares_list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index 967c996ae..dce94b5bc 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -203,7 +203,7 @@ class ParlamentarCrud(Crud): def take_legislatura_id(self): try: - return int(self.request.GET['periodo']) + return int(self.request.GET['pk']) except: for l in Legislatura.objects.all(): if l.atual(): diff --git a/sapl/templates/parlamentares/parlamentares_list.html b/sapl/templates/parlamentares/parlamentares_list.html index b7329af37..a2139852f 100644 --- a/sapl/templates/parlamentares/parlamentares_list.html +++ b/sapl/templates/parlamentares/parlamentares_list.html @@ -5,7 +5,7 @@
Selecione o PerĂ­odo
- {% for l in legislaturas %}