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 %}