Browse Source

Fix #1210

pull/1213/head
LeandroRoberto 8 years ago
parent
commit
84490b2bb0
  1. 5
      sapl/compilacao/templatetags/compilacao_filters.py
  2. 2
      sapl/templates/compilacao/textoarticulado_detail.html

5
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):

2
sapl/templates/compilacao/textoarticulado_detail.html

@ -10,7 +10,7 @@
{% if request.GET.back_type == 'history' and object.content_object %}
<a href="javascript:window.history.back()" title="{% trans 'Voltar para '%}{{object.content_object}}">{% trans 'Voltar para '%}{{object.content_object}}</a>
{% elif object.content_object%}
<a href="{% url object|urldetail_content_type object.content_object.pk %}" title="{% trans 'Voltar para '%}{{object.content_object}}">{% trans 'Voltar para '%}{{object.content_object}}</a>
<a href="{% url object|urldetail_content_type:object.content_object object.content_object.pk %}" title="{% trans 'Voltar para '%}{{object.content_object}}">{% trans 'Voltar para '%}{{object.content_object}}</a>
{%else%}
<a href="{% url 'sapl.compilacao:ta_detail' object.pk %}">{% trans 'Início' %}</a>
{%endif%}

Loading…
Cancel
Save