Browse Source

ordena pesquisa doc administrativo -data

pull/868/head
Rogério Frá 8 years ago
committed by Leandro Roberto da Silva
parent
commit
3a306f8da4
  1. 3
      sapl/protocoloadm/views.py

3
sapl/protocoloadm/views.py

@ -404,6 +404,9 @@ class PesquisarDocumentoAdministrativoView(DocumentoAdministrativoMixin,
qs = qs.distinct()
if 'o' in self.request.GET and not self.request.GET['o']:
qs = qs.order_by('-ano', '-numero')
kwargs.update({
'queryset': qs,
})

Loading…
Cancel
Save