@ -72,7 +74,10 @@ class NormaPesquisaView(FilterView):
defget_queryset(self):
qs=super().get_queryset()
qs=qs.extra({'norma_i':"CAST(regexp_replace(numero,'[^0-9]','', 'g') AS INTEGER)",'norma_letra':"regexp_replace(numero,'[^a-zA-Z]','', 'g')"}).order_by('-data','-norma_i','-norma_letra')
qs=qs.extra({
'nm_i':"CAST(regexp_replace(numero,'[^0-9]','', 'g') AS INTEGER)",
{% if request.GET.back_type == 'history' and object.content_object %}
<ahref="javascript:window.history.back()"title="{% trans 'Voltar para '%}{{object.content_object}}">{% trans 'Voltar para '%}{{object.content_object}}</a>
<ahref="javascript:window.history.back()"title="{% trans 'Voltar para '%}{{object}}">{% trans 'Voltar para '%}{{object}}</a>
{% elif object.content_object%}
<ahref="{% 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>
<ahref="{% url object|urldetail_content_type:object.content_object object.content_object.pk %}"title="{% trans 'Voltar para '%}{{object}}">{% trans 'Voltar para '%}{{object}}</a>
{%else%}
<ahref="{% url 'sapl.compilacao:ta_detail' object.pk %}">{% trans 'Início' %}</a>