From 2afa7ae86d136fc0adde2d78bbec884837833e39 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Thu, 16 Feb 2017 14:10:10 -0200 Subject: [PATCH] =?UTF-8?q?Muda=20t=C3=ADtulo=20de=20proposi=C3=A7=C3=B5es?= =?UTF-8?q?=20na=20masterdetaild=20e=20parlamentares?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/parlamentares/views.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index 7d0d47306..7141ab485 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -1,10 +1,10 @@ from django.contrib import messages from django.core.urlresolvers import reverse, reverse_lazy +from django.http.response import HttpResponseRedirect from django.utils.datastructures import MultiValueDictKeyError from django.utils.translation import ugettext_lazy as _ from django.views.generic import FormView -from django.http.response import HttpResponseRedirect from sapl.comissoes.models import Participacao from sapl.crud.base import (RP_CHANGE, RP_DETAIL, RP_LIST, Crud, CrudAux, @@ -105,6 +105,12 @@ class ProposicaoParlamentarCrud(CrudBaseForListAndDetailExternalAppView): class ListView(CrudBaseForListAndDetailExternalAppView.ListView): + def get_context_data(self, **kwargs): + context = CrudBaseForListAndDetailExternalAppView.ListView.get_context_data(self, **kwargs) + context['title'] = context['title'].replace( + 'Proposições', 'Matérias') + return context + def get_queryset(self): return super().get_queryset().filter( data_envio__isnull=False,