From 3266ab548564bad4dffa51232ac4c824e344f6c6 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Mon, 25 Mar 2019 14:50:10 -0300 Subject: [PATCH] =?UTF-8?q?corrige=20t=C3=ADtulo=20em=20ocorrencias=20da?= =?UTF-8?q?=20sess=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/sessao/views.py | 6 ++++++ sapl/templates/sessao/ocorrencia_sessao.html | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index cd37b2b2b..4a080d155 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -1858,6 +1858,12 @@ class OcorrenciaSessaoView(FormMixin, DetailView): logger = logging.getLogger(__name__) + def get_context_data(self, **kwargs): + context = FormMixin.get_context_data(self, **kwargs) + context['title'] = 'Ocorrências da Sessão (%s)' % ( + self.object) + return context + def delete(self): OcorrenciaSessao.objects.filter(sessao_plenaria=self.object).delete() diff --git a/sapl/templates/sessao/ocorrencia_sessao.html b/sapl/templates/sessao/ocorrencia_sessao.html index 0aef620d0..c50c184a1 100644 --- a/sapl/templates/sessao/ocorrencia_sessao.html +++ b/sapl/templates/sessao/ocorrencia_sessao.html @@ -4,9 +4,6 @@ {% load common_tags %} {% block actions %}{% endblock %} - -{% block title %}Ocorrências da Sessão ({{ object }}) {% endblock %} - {% block detail_content %} {% if perms|get_add_perm:view %}