From d348ca069921503550668e8214a7f363062d6620 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Fri, 16 Sep 2016 12:52:40 -0300 Subject: [PATCH] Conserta url para frente de parlamentares --- sapl/parlamentares/views.py | 6 ++++-- sapl/templates/parlamentares/subnav.yaml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index 440fa98da..0fabc8361 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -34,8 +34,10 @@ class FrenteList(ListView): return Frente.objects.filter(parlamentares__in=[self.kwargs['pk']]) def get_context_data(self, **kwargs): - return {'root_pk': self.kwargs['pk'], - 'object_list': self.get_queryset()} + context = super(FrenteList, self).get_context_data(**kwargs) + context['root_pk'] = self.kwargs['pk'] + context['object_list'] = self.get_queryset() + return context class FrenteCrud(Crud): diff --git a/sapl/templates/parlamentares/subnav.yaml b/sapl/templates/parlamentares/subnav.yaml index 986ab377d..6463640d8 100644 --- a/sapl/templates/parlamentares/subnav.yaml +++ b/sapl/templates/parlamentares/subnav.yaml @@ -14,4 +14,4 @@ - title: {% trans 'Relatorias' %} url: relatoria_list - title: {% trans 'Frentes' %} - url: + url: frent_list