From e7829af3e58dd9dc364c12c7d69ccb615859c801 Mon Sep 17 00:00:00 2001 From: cristian-longhi Date: Mon, 19 May 2025 11:04:03 -0300 Subject: [PATCH] =?UTF-8?q?Ajusta=20link=20do=20texto=20integral=20da=20No?= =?UTF-8?q?rma=20Jur=C3=ADdica=20nos=20formatos=20CSV,=20XLSX=20e=20JSON.?= =?UTF-8?q?=20(#3743)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update views.py A url gerada não está localizando o arquivo do Texto Integral da Norma Jurídica, o que é consertado inserindo "/media/" na composição do link. --- sapl/norma/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/norma/views.py b/sapl/norma/views.py index ce5c1a365..d746483e9 100644 --- a/sapl/norma/views.py +++ b/sapl/norma/views.py @@ -166,7 +166,7 @@ class NormaPesquisaView(MultiFormatOutputMixin, FilterView): texto_integral = obj.texto_integral if not isinstance( obj, dict) else obj["texto_integral"] - return f'{url}/{texto_integral}' + return f'{url}/media/{texto_integral}' def get_queryset(self): qs = super().get_queryset()