From 522bfd2a4495706dad84ace9fe311b903969cc5a Mon Sep 17 00:00:00 2001 From: cristian-longhi Date: Wed, 2 Oct 2024 14:42:57 -0300 Subject: [PATCH] Update views.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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()