From 5697d4531cbcb619432a87db31955b6a21066105 Mon Sep 17 00:00:00 2001 From: ulyssesBML Date: Fri, 5 Jul 2019 11:50:32 -0300 Subject: [PATCH] =?UTF-8?q?Adcionando=20melhorias=20relatadas=20na=20revis?= =?UTF-8?q?=C3=A3o=20do=20pr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/relatorios/views.py | 3 +-- sapl/sessao/views.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sapl/relatorios/views.py b/sapl/relatorios/views.py index 7174427c7..d611bb3f0 100755 --- a/sapl/relatorios/views.py +++ b/sapl/relatorios/views.py @@ -1269,8 +1269,7 @@ def get_pauta_sessao(sessao, casa): sessao_plenaria_id=sessao.id) expedientes = [] for e in expediente: - tipo = TipoExpediente.objects.get( - id=e.tipo_id) + tipo = e.tipo conteudo = re.sub( ' ', ' ', strip_tags(e.conteudo.replace('
', '\n'))) ex = {'tipo': tipo, 'conteudo': conteudo} diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 40c0d5d9f..231dfdb09 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -3307,8 +3307,7 @@ class PautaSessaoDetailView(DetailView): expedientes = [] for e in expediente: - tipo = TipoExpediente.objects.get( - id=e.tipo_id) + tipo = e.tipo conteudo = sub( ' ', ' ', strip_tags(e.conteudo.replace('
', '\n')))