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%}