Browse Source

Fixes #2802

pull/2809/head
Edward Ribeiro 6 years ago
parent
commit
dee74488be
  1. 2
      sapl/norma/views.py

2
sapl/norma/views.py

@ -79,7 +79,7 @@ class NormaPesquisaView(FilterView):
qs = qs.extra({ qs = qs.extra({
'nm_i': "CAST(regexp_replace(numero,'[^0-9]','', 'g') AS INTEGER)", 'nm_i': "CAST(regexp_replace(numero,'[^0-9]','', 'g') AS INTEGER)",
'norma_letra': "regexp_replace(numero,'[^a-zA-Z]','', 'g')" 'norma_letra': "regexp_replace(numero,'[^a-zA-Z]','', 'g')"
}).order_by('-data', '-nm_i', '-norma_letra') }).order_by('-data', 'nm_i', 'norma_letra')
return qs return qs

Loading…
Cancel
Save