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 %}