Browse Source

Conserta url para frente de parlamentares

pull/587/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
d348ca0699
  1. 6
      sapl/parlamentares/views.py
  2. 2
      sapl/templates/parlamentares/subnav.yaml

6
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):

2
sapl/templates/parlamentares/subnav.yaml

@ -14,4 +14,4 @@
- title: {% trans 'Relatorias' %}
url: relatoria_list
- title: {% trans 'Frentes' %}
url:
url: frent_list

Loading…
Cancel
Save