From 29fdd7fd91889cf2e4072925682af75403642c76 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Fri, 23 Sep 2016 14:44:58 -0300 Subject: [PATCH] Fix #605 --- sapl/sessao/views.py | 8 ++------ sapl/templates/sessao/resumo.html | 6 ++++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index d31915f21..51f8f0bf4 100644 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -860,14 +860,10 @@ class ResumoView(SessaoCrud.CrudDetailView): expedientes = [] for e in expediente: - tipo = TipoExpediente.objects.get( - id=e.tipo_id) - conteudo = sub( - ' ', ' ', strip_tags(e.conteudo)) - + tipo = TipoExpediente.objects.get(id=e.tipo_id) + conteudo = e.conteudo ex = {'tipo': tipo, 'conteudo': conteudo} expedientes.append(ex) - context.update({'expedientes': expedientes}) # ===================================================================== diff --git a/sapl/templates/sessao/resumo.html b/sapl/templates/sessao/resumo.html index bc1fe4b96..82594100b 100644 --- a/sapl/templates/sessao/resumo.html +++ b/sapl/templates/sessao/resumo.html @@ -49,8 +49,10 @@ {% for e in expedientes %} - {{e.tipo}}:
- + {{e.tipo}}:

+
+

{{e.conteudo|safe}}

+
{% endfor %}