Browse Source

resultado pesquisa protocolo data decrescente

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

3
sapl/protocoloadm/views.py

@ -92,6 +92,9 @@ class ProtocoloPesquisaView(PermissionRequiredMixin, FilterView):
qs = self.get_queryset().order_by('ano', 'numero')
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