diff --git a/sapl/protocoloadm/views.py b/sapl/protocoloadm/views.py
index 21847aa53..ce61633a3 100755
--- a/sapl/protocoloadm/views.py
+++ b/sapl/protocoloadm/views.py
@@ -373,13 +373,13 @@ class DocumentoAdministrativoCrud(Crud):
return redirect('/')
return super(Crud.DetailView, self).get(args, kwargs)
- def get_context_data(self, **kwargs):
- context = super().get_context_data(**kwargs)
- self.layout_display[0]['rows'][-1][0]['text'] = (
- '' % reverse(
+ def urlize(self, obj, fieldname):
+ a = '%s' % (
+ reverse(
'sapl.protocoloadm:doc_texto_integral',
- kwargs={'pk': self.object.pk}))
- return context
+ kwargs={'pk': obj.pk}),
+ obj.texto_integral.name.split('/')[-1])
+ return obj.texto_integral.field.verbose_name, a
class DeleteView(Crud.DeleteView):
diff --git a/sapl/templates/protocoloadm/layouts.yaml b/sapl/templates/protocoloadm/layouts.yaml
index d87a99b56..3f78f676e 100644
--- a/sapl/templates/protocoloadm/layouts.yaml
+++ b/sapl/templates/protocoloadm/layouts.yaml
@@ -9,7 +9,7 @@ DocumentoAdministrativo:
- data protocolo
- assunto
- interessado tramitacao
- - texto_integral
+ - texto_integral|urlize
- documento_anexado_set__documento_principal|m2m_urlize_for_detail
- documento_principal_set__documento_anexado|m2m_urlize_for_detail
{% trans 'Outras Informações' %}: