Browse Source

Fix #2104 (#2110)

Co-authored-by: Edward Ribeiro <edwardr@senado.gov.br>
pull/2114/head
Talitha Pumar 6 years ago
committed by Edward
parent
commit
30571d0b42
  1. 2
      sapl/norma/views.py

2
sapl/norma/views.py

@ -72,7 +72,7 @@ class NormaPesquisaView(FilterView):
def get_queryset(self):
qs = super().get_queryset()
qs.select_related('tipo', 'materia')
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')
return qs

Loading…
Cancel
Save