From b15cd7ad45894e2ad344e4c4dc3aa9a8cc2ab331 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Wed, 28 Sep 2016 13:32:53 -0300 Subject: [PATCH] Fix #650 --- sapl/parlamentares/views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index 796cf5223..9d3dde7c5 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -86,6 +86,12 @@ class ProposicaoParlamentarCrud(MasterDetailCrud): class ListView(MasterDetailCrud.ListView): permission_required = permissoes_parlamentares() + def get_context_data(self, **kwargs): + context = super(ProposicaoParlamentarCrud.ListView, self + ).get_context_data(**kwargs) + context['root_pk'] = self.kwargs['pk'] + return context + def get_queryset(self): try: proposicoes = Proposicao.objects.filter(