From acaaba0f38c03616b854ebc2a04e54e94dcd87c7 Mon Sep 17 00:00:00 2001 From: joaohortsenado <100957576+joaohortsenado@users.noreply.github.com> Date: Thu, 25 Aug 2022 21:57:29 -0300 Subject: [PATCH] =?UTF-8?q?Fix:=20Corre=C3=A7=C3=A3o=20de=20falha=20no=20e?= =?UTF-8?q?ndpoint=20recuperar-documentos=20(#3602)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: joao --- sapl/sessao/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index da2155030..934ec244d 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -2001,7 +2001,7 @@ def get_correspondencias(sessao_plenaria, user): { 'id': d.id, 'tipo': c.get_tipo_display(), - 'epigrafe': d, + 'epigrafe': str(d), 'data': d.data.strftime('%d/%m/%Y'), 'interessado': d.interessado, 'assunto': d.assunto, @@ -3875,7 +3875,7 @@ class PautaSessaoDetailView(DetailView): { 'id': d.id, 'tipo': c.get_tipo_display(), - 'epigrafe': d, + 'epigrafe': str(d), 'data': d.data.strftime('%d/%m/%Y'), 'interessado': d.interessado, 'assunto': d.assunto, @@ -5082,7 +5082,7 @@ def recuperar_documento(request): return JsonResponse( { 'id': d.id, - 'epigrafe': d, + 'epigrafe': str(d), 'data': d.data.strftime('%d/%m/%Y'), 'assunto': d.assunto, 'restrito': d.restrito,