From 84490b2bb0778699ecf9aea4a5b37d3e9e5622ef Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Tue, 20 Jun 2017 16:39:57 -0300 Subject: [PATCH] Fix #1210 --- sapl/compilacao/templatetags/compilacao_filters.py | 5 ----- sapl/templates/compilacao/textoarticulado_detail.html | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/sapl/compilacao/templatetags/compilacao_filters.py b/sapl/compilacao/templatetags/compilacao_filters.py index 941ec5fe1..d1e957eff 100644 --- a/sapl/compilacao/templatetags/compilacao_filters.py +++ b/sapl/compilacao/templatetags/compilacao_filters.py @@ -286,11 +286,6 @@ def nomenclatura_heranca(d, ignore_ultimo=0, ignore_primeiro=0): return result -@register.filter -def urldetail_content_type(obj): - return '%s:%s_detail' % ( - obj.content_object._meta.app_config.name, obj.content_type.model) - @register.filter def list(obj): diff --git a/sapl/templates/compilacao/textoarticulado_detail.html b/sapl/templates/compilacao/textoarticulado_detail.html index 7875a304b..68d7db7b7 100644 --- a/sapl/templates/compilacao/textoarticulado_detail.html +++ b/sapl/templates/compilacao/textoarticulado_detail.html @@ -10,7 +10,7 @@ {% if request.GET.back_type == 'history' and object.content_object %} {% trans 'Voltar para '%}{{object.content_object}} {% elif object.content_object%} - {% trans 'Voltar para '%}{{object.content_object}} + {% trans 'Voltar para '%}{{object.content_object}} {%else%} {% trans 'InĂ­cio' %} {%endif%}